mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/rubygems: Update to RubyGems 2.4.5.
* test/rubygems: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48729 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a0b80a4410
commit
97f80207d0
32 changed files with 458 additions and 103 deletions
|
@ -21,6 +21,20 @@ class TestGemSource < Gem::TestCase
|
|||
@source = Gem::Source.new(@gem_repo)
|
||||
end
|
||||
|
||||
def test_initialize_invalid_uri
|
||||
assert_raises URI::InvalidURIError do
|
||||
Gem::Source.new 'git@example:a.git'
|
||||
end
|
||||
end
|
||||
|
||||
def test_initialize_git
|
||||
repository = 'git@example:a.git'
|
||||
|
||||
source = Gem::Source::Git.new 'a', repository, 'master', false
|
||||
|
||||
assert_equal repository, source.uri
|
||||
end
|
||||
|
||||
def test_api_uri
|
||||
assert_equal @source.api_uri, @source.uri
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue