From fd34475b7b898ed3c9b3a6df3891f8e9ef572e16 Mon Sep 17 00:00:00 2001 From: Code Ass Date: Fri, 2 Sep 2016 04:36:23 +0900 Subject: [PATCH] Fix t.pattern test, it supports glob --- test/test_rake_test_task.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/test_rake_test_task.rb b/test/test_rake_test_task.rb index 9b3450334..53eba5288 100644 --- a/test/test_rake_test_task.rb +++ b/test/test_rake_test_task.rb @@ -82,6 +82,9 @@ 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 @@ -89,6 +92,9 @@ def test_pattern_equals 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"