diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-04-01 17:21:08 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-04-01 17:21:08 +0000 |
commit | bad1200f9d1b1082b3aaa46195ab0b332c6d00ac (patch) | |
tree | 9b2bb668e78900f58337bb1cb20f47369387eaf1 /test/rubygems | |
parent | 1bf2b99d275da110319e498e5d28febe37e9cde1 (diff) |
Fix test for testing rake command.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rubygems')
-rw-r--r-- | test/rubygems/gemutilities.rb | 2 | ||||
-rw-r--r-- | test/rubygems/test_gem_commands_uninstall_command.rb | 3 |
2 files changed, 4 insertions, 1 deletions
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"] |