From bad1200f9d1b1082b3aaa46195ab0b332c6d00ac Mon Sep 17 00:00:00 2001 From: naruse Date: Thu, 1 Apr 2010 17:21:08 +0000 Subject: Fix test for testing rake command. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/rubygems/gemutilities.rb | 2 +- test/rubygems/test_gem_commands_uninstall_command.rb | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'test/rubygems') diff --git a/test/rubygems/gemutilities.rb b/test/rubygems/gemutilities.rb index 9c831917d8..965d898abc 100644 --- a/test/rubygems/gemutilities.rb +++ b/test/rubygems/gemutilities.rb @@ -566,7 +566,7 @@ Also, a list: @@ruby = rubybin env_rake = ENV['rake'] - ruby19_rake = File.expand_path("../../bin/rake", __FILE__) + ruby19_rake = File.expand_path("../../../bin/rake", __FILE__) @@rake = if env_rake then ENV["rake"] elsif File.exist? ruby19_rake then diff --git a/test/rubygems/test_gem_commands_uninstall_command.rb b/test/rubygems/test_gem_commands_uninstall_command.rb index cd440f63ee..c9feb31ccb 100644 --- a/test/rubygems/test_gem_commands_uninstall_command.rb +++ b/test/rubygems/test_gem_commands_uninstall_command.rb @@ -65,7 +65,10 @@ class TestGemCommandsUninstallCommand < GemInstallerTestCase util_setup_gem use_ui @ui do + tmp_rake = ENV['rake'] + ENV['rake'] = @@rake @installer.install + ENV['rake'] = tmp_rake end @cmd.options[:args] = ["pre"] -- cgit v1.2.3