spec/gemirro/server_spec.rb in gemirro-1.2.0 vs spec/gemirro/server_spec.rb in gemirro-1.3.0
- old
+ new
@@ -123,11 +123,11 @@
expect(last_response.body).to eq('content')
expect(last_response).to be_ok
end
it 'should try to download gems.' do
- source = Gemirro::Source.new('test', 'http://rubygems.org')
+ source = Gemirro::Source.new('test', 'https://rubygems.org')
versions_fetcher = Gemirro::VersionsFetcher.new(source)
allow(versions_fetcher).to receive(:fetch).once.and_return(true)
gems_fetcher = Gemirro::GemsFetcher.new(source, versions_fetcher)
@@ -164,10 +164,10 @@
expect(last_response.status).to eq(200)
expect(last_response.body).to eq('content')
end
it 'should catch exceptions' do
- source = Gemirro::Source.new('test', 'http://rubygems.org')
+ source = Gemirro::Source.new('test', 'https://rubygems.org')
versions_fetcher = Gemirro::VersionsFetcher.new(source)
allow(versions_fetcher).to receive(:fetch).once.and_return(true)
gems_fetcher = Gemirro::VersionsFetcher.new(source)