spec/gemirro/source_spec.rb in gemirro-0.13.3 vs spec/gemirro/source_spec.rb in gemirro-0.13.4

- old
+ new

@@ -37,20 +37,20 @@ end it 'should fetch gem' do Struct.new('FetchGem', :body) result = Struct::FetchGem.new(true) - allow(Http).to receive(:get).once.with( - 'https://rubygems.org/gems/gemirro-0.0.1.gem').and_return(result) - expect(@source.fetch_gem('gemirro', '0.0.1')).to be_truthy + allow(Http).to receive(:get).once + .with('https://rubygems.org/gems/gemirro-0.0.1.gem').and_return(result) + expect(@source.fetch_gem('gemirro-0.0.1.gem')).to be_truthy end it 'should fetch gemspec' do Struct.new('FetchGemspec', :body) result = Struct::FetchGemspec.new(true) - allow(Http).to receive(:get).once.with( - 'https://rubygems.org/quick/Marshal.4.8/gemirro-0.0.1.gemspec.rz').and_return(result) - expect(@source.fetch_gemspec('gemirro', '0.0.1')).to be_truthy + allow(Http).to receive(:get).once + .with('https://rubygems.org/quick/Marshal.4.8/gemirro-0.0.1.gemspec.rz').and_return(result) + expect(@source.fetch_gemspec('gemirro-0.0.1.gemspec.rz')).to be_truthy end it 'should add gems' do expect(@source.gems).to eq([]) @source.gem('gemirro')