diff options
-rwxr-xr-x | railties/Rakefile | 8 |
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 |