mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update rubygems-2.6.2.
Please see entries of 2.6.2 on https://github.com/rubygems/rubygems/blob/master/History.txt git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54308 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6cc4937aec
commit
7fbb9078fe
13 changed files with 179 additions and 27 deletions
|
@ -64,6 +64,13 @@ class TestKernel < Gem::TestCase
|
|||
assert gem('d', '>= 1.a'), 'prerelease requirement may load prerelease'
|
||||
end
|
||||
|
||||
def test_gem_env_req
|
||||
ENV["GEM_REQUIREMENT_A"] = '~> 2.0'
|
||||
assert_raises(Gem::LoadError) { gem('a', '= 1') }
|
||||
assert gem('a', '> 1')
|
||||
assert_equal @a2, Gem.loaded_specs['a']
|
||||
end
|
||||
|
||||
def test_gem_conflicting
|
||||
assert gem('a', '= 1'), "Should load"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue