[rubygems/rubygems] Make Gem.clear_paths test less implementation dependent

b545daa95d
This commit is contained in:
David Rodriguez 2024-05-06 12:15:44 +02:00 committed by git
parent 8d28e63566
commit 6454238072
3 changed files with 15 additions and 14 deletions

View file

@ -516,7 +516,10 @@ class TestGem < Gem::TestCase
Gem.clear_paths
assert_nil Gem::Specification.send(:class_variable_get, :@@all)
with_env("GEM_HOME" => "foo", "GEM_PATH" => "bar") do
assert_equal("foo", Gem.dir)
assert_equal("bar", Gem.path.first)
end
end
def test_self_configuration