diff --git a/railties/Rakefile b/railties/Rakefile index be9a77d4e45..aa1dfa5dabe 100755 --- a/railties/Rakefile +++ b/railties/Rakefile @@ -17,8 +17,7 @@ namespace :test do dir = ENV["TEST_DIR"] || "**" Dir["test/#{dir}/*_test.rb"].each do |file| next true if file.include?("fixtures") - ruby = File.join(*RbConfig::CONFIG.values_at('bindir', 'RUBY_INSTALL_NAME')) - sh(ruby, '-Itest', "-I#{File.dirname(__FILE__)}/../activesupport/lib", file) + ruby '-Itest', "-I#{File.dirname(__FILE__)}/../activesupport/lib", file end end end