rake already ships with a ruby command

This commit is contained in:
Aaron Patterson 2011-09-09 18:56:11 -07:00
parent 7bc6a0098b
commit 9736cb2bab
1 changed files with 1 additions and 2 deletions

View File

@ -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