aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'railties/lib/tasks')
-rw-r--r--railties/lib/tasks/testing.rake8
1 files changed, 4 insertions, 4 deletions
diff --git a/railties/lib/tasks/testing.rake b/railties/lib/tasks/testing.rake
index a62ed1d2b0..5792f063ac 100644
--- a/railties/lib/tasks/testing.rake
+++ b/railties/lib/tasks/testing.rake
@@ -37,14 +37,14 @@ Rake::TestTask.new(:test_functional => [ :prepare_test_database ]) do |t|
end
desc "Run the plugin tests in vendor/plugins/**/test (or specify with PLUGIN=name)"
-Rake::TestTask.new(:test_plugins => [ :prepare_test_database ]) do |t|
+Rake::TestTask.new(:test_plugins => :environment) do |t|
t.libs << "test"
if ENV['PLUGIN']
- t.pattern = "vendor/plugins/#{ENV['PLUGIN']}/test/*_test.rb"
+ t.pattern = "vendor/plugins/#{ENV['PLUGIN']}/test/**/*_test.rb"
else
- t.pattern = 'vendor/plugins/**/test/*_test.rb'
+ t.pattern = 'vendor/plugins/**/test/**/*_test.rb'
end
t.verbose = true
-end \ No newline at end of file
+end