diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2005-10-28 20:28:09 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2005-10-28 20:28:09 +0000 |
commit | 927b847239ede8cb455366b95e640a25d92a2b8e (patch) | |
tree | d2876cae56fa8c82837b454408c7ce4edd59ab74 /railties/lib/tasks/testing.rake | |
parent | fd1d6d0eb32aef7443acb75fc020a72379718f14 (diff) | |
download | rails-927b847239ede8cb455366b95e640a25d92a2b8e.tar.gz rails-927b847239ede8cb455366b95e640a25d92a2b8e.tar.bz2 rails-927b847239ede8cb455366b95e640a25d92a2b8e.zip |
Add Rakefile to plugin generator. Let test_plugins rake task look deeper into plugins' test dirs. Make plugin test cases flunk by default.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2790 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/lib/tasks/testing.rake')
-rw-r--r-- | railties/lib/tasks/testing.rake | 8 |
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 |