railties depends on actionpack, so put actionpack in the include path

This commit is contained in:
Aaron Patterson 2011-09-09 19:00:33 -07:00
parent 9736cb2bab
commit 0f04260c51
1 changed files with 7 additions and 1 deletions

View File

@ -17,7 +17,13 @@ namespace :test do
dir = ENV["TEST_DIR"] || "**"
Dir["test/#{dir}/*_test.rb"].each do |file|
next true if file.include?("fixtures")
ruby '-Itest', "-I#{File.dirname(__FILE__)}/../activesupport/lib", file
dash_i = [
'test',
'lib',
"#{File.dirname(__FILE__)}/../activesupport/lib",
"#{File.dirname(__FILE__)}/../actionpack/lib"
]
ruby "-I#{dash_i.join ':'}", file
end
end
end