From 590d2222a0f803f30f0323d51b8bcb51d6023cea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Sun, 8 Aug 2021 10:43:38 +0200 Subject: [rubygems/rubygems] Remove helper method not buying us much https://github.com/rubygems/rubygems/commit/81dc685d20 --- test/rubygems/test_gem.rb | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'test/rubygems/test_gem.rb') diff --git a/test/rubygems/test_gem.rb b/test/rubygems/test_gem.rb index 013daa0610..da6fdc54fa 100644 --- a/test/rubygems/test_gem.rb +++ b/test/rubygems/test_gem.rb @@ -931,17 +931,13 @@ class TestGem < Gem::TestCase assert_equal true, Gem.loaded_specs.keys.include?('foo') end - def util_path - ENV.delete "GEM_HOME" - ENV.delete "GEM_PATH" - end - def test_self_path assert_equal [Gem.dir], Gem.path end def test_self_path_default - util_path + ENV.delete "GEM_HOME" + ENV.delete "GEM_PATH" Gem.instance_variable_set :@paths, nil -- cgit v1.2.1