diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2009-11-10 16:50:15 -0800 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2009-11-10 16:50:15 -0800 |
commit | bbb3e5a858b2d078b2af7516a583fa12f3edb565 (patch) | |
tree | 980814745eb39f4a771a50ee8b3c3947f8485c17 /activeresource | |
parent | e02bff2634d94c07780884cae83b258d3f3a9a0e (diff) | |
download | rails-bbb3e5a858b2d078b2af7516a583fa12f3edb565.tar.gz rails-bbb3e5a858b2d078b2af7516a583fa12f3edb565.tar.bz2 rails-bbb3e5a858b2d078b2af7516a583fa12f3edb565.zip |
Unify test:isolated across components and run by default at toplevel
Diffstat (limited to 'activeresource')
-rw-r--r-- | activeresource/Rakefile | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/activeresource/Rakefile b/activeresource/Rakefile index 834d4c0c59..6566e84d4c 100644 --- a/activeresource/Rakefile +++ b/activeresource/Rakefile @@ -35,15 +35,16 @@ Rake::TestTask.new { |t| t.warning = true } -task :isolated_test do - ruby = File.join(*RbConfig::CONFIG.values_at('bindir', 'RUBY_INSTALL_NAME')) - activesupport_path = "#{File.dirname(__FILE__)}/../activesupport/lib" - Dir.glob("test/**/*_test.rb").all? do |file| - system(ruby, '-w', "-Ilib:test:#{activesupport_path}", file) - end or raise "Failures" +namespace :test do + task :isolated do + ruby = File.join(*RbConfig::CONFIG.values_at('bindir', 'RUBY_INSTALL_NAME')) + activesupport_path = "#{File.dirname(__FILE__)}/../activesupport/lib" + Dir.glob("test/**/*_test.rb").all? do |file| + system(ruby, '-w', "-Ilib:test:#{activesupport_path}", file) + end or raise "Failures" + end end - # Generate the RDoc documentation Rake::RDocTask.new { |rdoc| |