class Redmine::AssetPathTest < ActiveSupport::TestCase
def setup
assets_dir = Rails.root.join('test/fixtures/asset_path/foo')
- @asset_path = Redmine::AssetPath.new(assets_dir, assets_dir.children.filter_map{|child| child if child.directory? }, 'plugin_assets/foo/')
+ paths = assets_dir.children.filter_map{|child| child if child.directory? && !child.basename.to_s.starts_with?(".")}
+ @asset_path = Redmine::AssetPath.new(assets_dir, paths, 'plugin_assets/foo/')
@assets = {}
@transition_map = {}
@asset_path.update(transition_map: @transition_map, assets: @assets)