mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
[rubygems/rubygems] Make Gem.clear_paths
test less implementation dependent
b545daa95d
This commit is contained in:
parent
8d28e63566
commit
6454238072
3 changed files with 15 additions and 14 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue