mirror of
https://github.com/ruby/ruby.git
synced 2025-09-20 11:03:58 +02:00
merge revision(s) 33386:
* lib/rubygems: Update to RubyGems 1.8.11. Move Deprecate into the Gem namespace. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33435 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
370a64cf10
commit
54ecf81ffc
21 changed files with 112 additions and 105 deletions
|
@ -63,7 +63,7 @@ class TestGemDependency < Gem::TestCase
|
|||
assert_match dep("a", ">= 0"), dep("a", "1"), "match version"
|
||||
refute_match dep("a"), Object.new
|
||||
|
||||
Deprecate.skip_during do
|
||||
Gem::Deprecate.skip_during do
|
||||
assert_match dep(/a/, ">= 0"), d, "match simple regexp"
|
||||
assert_match dep(/a|b/, ">= 0"), d, "match scary regexp"
|
||||
refute_match dep(/a/), dep("b")
|
||||
|
@ -72,7 +72,7 @@ class TestGemDependency < Gem::TestCase
|
|||
|
||||
def test_equals_tilde_escape
|
||||
refute_match dep("a|b"), dep("a", "1")
|
||||
Deprecate.skip_during do
|
||||
Gem::Deprecate.skip_during do
|
||||
assert_match dep(/a|b/), dep("a", "1")
|
||||
end
|
||||
end
|
||||
|
@ -88,7 +88,7 @@ class TestGemDependency < Gem::TestCase
|
|||
def test_equals_tilde_spec
|
||||
assert_match dep("a", ">= 0"), spec("a", "0")
|
||||
assert_match dep("a", "1"), spec("a", "1")
|
||||
Deprecate.skip_during do
|
||||
Gem::Deprecate.skip_during do
|
||||
assert_match dep(/a/, ">= 0"), spec("a", "0")
|
||||
assert_match dep(/a|b/, ">= 0"), spec("b", "0")
|
||||
refute_match dep(/a/, ">= 0"), spec("b", "0")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue