aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/Rakefile
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2009-10-03 21:33:06 -0500
committerJoshua Peek <josh@joshpeek.com>2009-10-03 21:33:06 -0500
commit75a2f00c9790f2fd7cebb4337cab1404e9e03eae (patch)
treee5037ab79420c416a204d9f22055376b4847dcde /actionpack/Rakefile
parent018b79dd36d054d87fdc408d38dc9ac7f1b1500d (diff)
downloadrails-75a2f00c9790f2fd7cebb4337cab1404e9e03eae.tar.gz
rails-75a2f00c9790f2fd7cebb4337cab1404e9e03eae.tar.bz2
rails-75a2f00c9790f2fd7cebb4337cab1404e9e03eae.zip
Move improved isolated test runner to AP
Diffstat (limited to 'actionpack/Rakefile')
-rw-r--r--actionpack/Rakefile11
1 files changed, 5 insertions, 6 deletions
diff --git a/actionpack/Rakefile b/actionpack/Rakefile
index 547e74b5a1..e186037aeb 100644
--- a/actionpack/Rakefile
+++ b/actionpack/Rakefile
@@ -34,22 +34,21 @@ end
desc "Run all unit tests"
task :test => [:test_action_pack, :test_active_record_integration]
-TESTS_GLOB = "test/{abstract,controller,dispatch,template}/**/*_test.rb"
-
Rake::TestTask.new(:test_action_pack) do |t|
t.libs << 'test'
# make sure we include the tests in alphabetical order as on some systems
# this will not happen automatically and the tests (as a whole) will error
- t.test_files = Dir.glob(TESTS_GLOB).sort
+ t.test_files = Dir.glob('test/{abstract,controller,dispatch,template}/**/*_test.rb').sort
t.verbose = true
# t.warning = true
end
-task :isolated_test do
- ruby = File.join(*RbConfig::CONFIG.values_at('bindir', 'RUBY_INSTALL_NAME'))
- Dir.glob(TESTS_GLOB).all? { |file| system(ruby, '-Ilib:test', file) } or raise "Failures"
+namespace :test do
+ Rake::TestTask.new(:isolated) do |t|
+ t.pattern = 'test/ts_isolated.rb'
+ end
end
desc 'ActiveRecord Integration Tests'