瀏覽代碼

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
pull/145/merge
Marius Balteanu 3 月之前
父節點
當前提交
71620e9048
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2
    1
      test/unit/lib/redmine/asset_path_test.rb

+ 2
- 1
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)

Loading…
取消
儲存