aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/Rakefile
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2009-11-10 16:50:15 -0800
committerJeremy Kemper <jeremy@bitsweat.net>2009-11-10 16:50:15 -0800
commitbbb3e5a858b2d078b2af7516a583fa12f3edb565 (patch)
tree980814745eb39f4a771a50ee8b3c3947f8485c17 /activemodel/Rakefile
parente02bff2634d94c07780884cae83b258d3f3a9a0e (diff)
downloadrails-bbb3e5a858b2d078b2af7516a583fa12f3edb565.tar.gz
rails-bbb3e5a858b2d078b2af7516a583fa12f3edb565.tar.bz2
rails-bbb3e5a858b2d078b2af7516a583fa12f3edb565.zip
Unify test:isolated across components and run by default at toplevel
Diffstat (limited to 'activemodel/Rakefile')
-rwxr-xr-xactivemodel/Rakefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/activemodel/Rakefile b/activemodel/Rakefile
index a63e1982b9..1f4a8466c9 100755
--- a/activemodel/Rakefile
+++ b/activemodel/Rakefile
@@ -19,11 +19,13 @@ Rake::TestTask.new do |t|
t.warning = true
end
-task :isolated_test do
- ruby = File.join(*RbConfig::CONFIG.values_at('bindir', 'RUBY_INSTALL_NAME'))
- Dir.glob("#{dir}/test/**/*_test.rb").all? do |file|
- system(ruby, '-w', "-I#{dir}/lib", "-I#{dir}/test", file)
- end or raise "Failures"
+namespace :test do
+ task :isolated do
+ ruby = File.join(*RbConfig::CONFIG.values_at('bindir', 'RUBY_INSTALL_NAME'))
+ Dir.glob("#{dir}/test/**/*_test.rb").all? do |file|
+ system(ruby, '-w', "-I#{dir}/lib", "-I#{dir}/test", file)
+ end or raise "Failures"
+ end
end