From 86fc43fd584726ba81b1a3b3e0a6f6000c1f4cc8 Mon Sep 17 00:00:00 2001 From: Yehuda Katz + Carl Lerche Date: Mon, 8 Jun 2009 13:33:18 -0700 Subject: ActionPack components should no longer have undeclared dependencies. * Tests can be run in isolation * Dependencies added * A few tests modified to avoid depending on AS deps not depended on my files they were testing --- actionpack/Rakefile | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'actionpack/Rakefile') 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| -- cgit v1.2.3