Skip to content

Commit

Permalink
Rake doesn't expand the pattern for tests properly in 1.9.3.
Browse files Browse the repository at this point in the history
  • Loading branch information
Manfred committed Aug 20, 2012
1 parent 16bf763 commit a7f03dd
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Rakefile
Expand Up @@ -4,30 +4,32 @@ require 'rake/rdoctask'
task :default => :test

namespace :test do
test_files = Dir.glob("test/**/*_test.rb")

Rake::TestTask.new(:rails2) do |t|
t.libs += %w(test test/test_helper/rails2)
t.pattern = 'test/**/*_test.rb'
t.test_files = test_files
t.verbose = true
end

desc 'Test the plugin with Rails 3.'
Rake::TestTask.new(:rails3) do |t|
t.libs += %w(test test/test_helper/rails3)
t.pattern = 'test/**/*_test.rb'
t.test_files = test_files
t.verbose = true
end

desc 'Test the plugin with Rails 3.1.'
Rake::TestTask.new(:rails31) do |t|
t.libs += %w(test test/test_helper/rails3.1)
t.pattern = 'test/**/*_test.rb'
t.test_files = test_files
t.verbose = true
end

desc 'Test the plugin with Rails 3.2.'
Rake::TestTask.new(:rails32) do |t|
t.libs += %w(test test/test_helper/rails3.2)
t.pattern = 'test/**/*_test.rb'
t.test_files = test_files
t.verbose = true
end
end
Expand Down

0 comments on commit a7f03dd

Please sign in to comment.