summaryrefslogtreecommitdiff
path: root/test/rubygems/test_gem_commands_uninstall_command.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/rubygems/test_gem_commands_uninstall_command.rb')
-rw-r--r--test/rubygems/test_gem_commands_uninstall_command.rb9
1 files changed, 4 insertions, 5 deletions
diff --git a/test/rubygems/test_gem_commands_uninstall_command.rb b/test/rubygems/test_gem_commands_uninstall_command.rb
index c9feb31ccb..6113ed61b2 100644
--- a/test/rubygems/test_gem_commands_uninstall_command.rb
+++ b/test/rubygems/test_gem_commands_uninstall_command.rb
@@ -64,11 +64,10 @@ class TestGemCommandsUninstallCommand < GemInstallerTestCase
util_setup_gem
- use_ui @ui do
- tmp_rake = ENV['rake']
- ENV['rake'] = @@rake
- @installer.install
- ENV['rake'] = tmp_rake
+ build_rake_in do
+ use_ui @ui do
+ @installer.install
+ end
end
@cmd.options[:args] = ["pre"]