diff options
author | Marius Balteanu <marius.balteanu@zitec.com> | 2024-01-26 02:52:57 +0000 |
---|---|---|
committer | Marius Balteanu <marius.balteanu@zitec.com> | 2024-01-26 02:52:57 +0000 |
commit | 71620e9048203984e807f72f7b1a16828af40e53 (patch) | |
tree | 7e16124bd1798ddf84f1fda675d53c7eef8b4631 /test/unit/lib/redmine/asset_path_test.rb | |
parent | 8d26675083b2925cca83b3e0785f0d72286f7ec9 (diff) | |
download | redmine-71620e9048203984e807f72f7b1a16828af40e53.tar.gz redmine-71620e9048203984e807f72f7b1a16828af40e53.zip |
Fix failing test by ignoring the directories that start with a dot (#39111).
git-svn-id: https://svn.redmine.org/redmine/trunk@22641 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/lib/redmine/asset_path_test.rb')
-rw-r--r-- | test/unit/lib/redmine/asset_path_test.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/unit/lib/redmine/asset_path_test.rb b/test/unit/lib/redmine/asset_path_test.rb index e820f33fd..7d0a595d3 100644 --- a/test/unit/lib/redmine/asset_path_test.rb +++ b/test/unit/lib/redmine/asset_path_test.rb @@ -21,7 +21,8 @@ require_relative '../../../test_helper' 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) |