Skip to content

Commit

Permalink
Fix t.pattern test, it supports glob
Browse files Browse the repository at this point in the history
  • Loading branch information
aycabta committed Sep 6, 2016
1 parent 126d3ad commit fd34475
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/test_rake_test_task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,19 @@ def test_libs_equals_empty
end

def test_pattern_equals
['gl.rb', 'ob.rb'].each do |f|
create_file(f)
end
tt = Rake::TestTask.new do |t|
t.pattern = "*.rb"
end
assert_equal ["*.rb"], tt.file_list.to_a
end

def test_pattern_equals_test_files_equals
['gl.rb', 'ob.rb'].each do |f|
create_file(f)
end
tt = Rake::TestTask.new do |t|
t.test_files = FileList["a.rb", "b.rb"]
t.pattern = "*.rb"
Expand Down

0 comments on commit fd34475

Please sign in to comment.