diff options
-rw-r--r-- | lib/bundler/fetcher/base.rb | 2 | ||||
-rw-r--r-- | spec/bundler/fetcher/base_spec.rb | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/bundler/fetcher/base.rb b/lib/bundler/fetcher/base.rb index f7210bd03d..6714ea2cd7 100644 --- a/lib/bundler/fetcher/base.rb +++ b/lib/bundler/fetcher/base.rb @@ -21,7 +21,7 @@ module Bundler @fetch_uri ||= begin if remote_uri.host == "rubygems.org" uri = remote_uri.dup - uri.host = "bundler.rubygems.org" + uri.host = "index.rubygems.org" uri else remote_uri diff --git a/spec/bundler/fetcher/base_spec.rb b/spec/bundler/fetcher/base_spec.rb index 5a8c7647b9..bd1c03660c 100644 --- a/spec/bundler/fetcher/base_spec.rb +++ b/spec/bundler/fetcher/base_spec.rb @@ -42,9 +42,9 @@ describe Bundler::Fetcher::Base do before { allow(subject).to receive(:remote_uri).and_return(remote_uri_obj) } context "when the remote uri's host is rubygems.org" do - it "should create a copy of the remote uri with bundler.rubygems.org as the host" do + it "should create a copy of the remote uri with index.rubygems.org as the host" do fetched_uri = subject.fetch_uri - expect(fetched_uri.host).to eq("bundler.rubygems.org") + expect(fetched_uri.host).to eq("index.rubygems.org") expect(fetched_uri).to_not be(remote_uri_obj) end end |