aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2011-09-09 19:00:33 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2011-09-09 19:00:33 -0700
commit0f04260c514fe0a58adb57f3b8d69f12f18cfe9e (patch)
treefa0577a2f9c571ea1bc3cd35ebd5c9f1475d8f44
parent9736cb2bab9268b0520895ee8883174761c3b981 (diff)
downloadrails-0f04260c514fe0a58adb57f3b8d69f12f18cfe9e.tar.gz
rails-0f04260c514fe0a58adb57f3b8d69f12f18cfe9e.tar.bz2
rails-0f04260c514fe0a58adb57f3b8d69f12f18cfe9e.zip
railties depends on actionpack, so put actionpack in the include path
-rwxr-xr-xrailties/Rakefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/railties/Rakefile b/railties/Rakefile
index aa1dfa5dab..25e515e016 100755
--- a/railties/Rakefile
+++ b/railties/Rakefile
@@ -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