aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/Rakefile
diff options
context:
space:
mode:
authorArun Agrawal <arunagw@gmail.com>2013-07-26 11:07:25 +0200
committerArun Agrawal <arunagw@gmail.com>2013-07-26 11:07:25 +0200
commitf52832de2ad67c4489b094d362425cf66ab29ced (patch)
treeb2cddde0bced20d97ac99f3443d3841e0cae99f5 /activemodel/Rakefile
parent310fc2b8c1ac82e8d61ad50498667cfa8e95aa80 (diff)
downloadrails-f52832de2ad67c4489b094d362425cf66ab29ced.tar.gz
rails-f52832de2ad67c4489b094d362425cf66ab29ced.tar.bz2
rails-f52832de2ad67c4489b094d362425cf66ab29ced.zip
grab executable from rubygems
As done here d7fc97d3f90c0e30865d32ce202658f03248cacc
Diffstat (limited to 'activemodel/Rakefile')
-rw-r--r--activemodel/Rakefile3
1 files changed, 1 insertions, 2 deletions
diff --git a/activemodel/Rakefile b/activemodel/Rakefile
index f72b949c64..407dda2ec3 100644
--- a/activemodel/Rakefile
+++ b/activemodel/Rakefile
@@ -13,9 +13,8 @@ end
namespace :test do
task :isolated do
- ruby = File.join(*RbConfig::CONFIG.values_at('bindir', 'RUBY_INSTALL_NAME'))
Dir.glob("#{dir}/test/**/*_test.rb").all? do |file|
- sh(ruby, '-w', "-I#{dir}/lib", "-I#{dir}/test", file)
+ sh(Gem.ruby, '-w', "-I#{dir}/lib", "-I#{dir}/test", file)
end or raise "Failures"
end
end