diff options
Diffstat (limited to 'actionpack/Rakefile')
-rw-r--r-- | actionpack/Rakefile | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/actionpack/Rakefile b/actionpack/Rakefile index 5f5614e58f..d6aa0c0b87 100644 --- a/actionpack/Rakefile +++ b/actionpack/Rakefile @@ -35,6 +35,14 @@ Rake::TestTask.new(:test_action_pack) do |t| t.verbose = true #t.warning = true end + +task :test_action_pack_isolated do + test_files = Dir.glob( "test/{controller,dispatch,template,html-scanner}/**/*_test.rb" ).sort + test_lib = test_lib_dirs.map { |lib| "-I#{lib}" }.join(' ') + test_files.map! { |f| "ruby #{test_lib} #{f}" } + exec test_files.join(" && ") +end + task :isolated_test do ruby = File.join(*RbConfig::CONFIG.values_at('bindir', 'RUBY_INSTALL_NAME')) Dir.glob("test/{controller,dispatch,template}/**/*_test.rb").all? do |file| |