mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
Merge rubygems master branch from github.com/rubygems/rubygems.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65294 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ff31b35f6a
commit
615ac35934
62 changed files with 386 additions and 410 deletions
|
@ -36,18 +36,6 @@ class TestGemSource < Gem::TestCase
|
|||
assert_equal repository, source.uri
|
||||
end
|
||||
|
||||
def test_api_uri
|
||||
assert_equal @source.api_uri, @source.uri
|
||||
end
|
||||
|
||||
def test_api_uri_resolved_from_remote_fetcher
|
||||
uri = URI.parse "http://gem.example/foo"
|
||||
@fetcher.api_endpoints[uri] = URI.parse "http://api.blah"
|
||||
|
||||
src = Gem::Source.new uri
|
||||
assert_equal URI.parse("http://api.blah"), src.api_uri
|
||||
end
|
||||
|
||||
def test_cache_dir_escapes_windows_paths
|
||||
uri = URI.parse("file:///C:/WINDOWS/Temp/gem_repo")
|
||||
root = Gem.spec_cache_dir
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue