spec/gemirro/gems_fetcher_spec.rb in gemirro-1.1.1 vs spec/gemirro/gems_fetcher_spec.rb in gemirro-1.2.0
- old
+ new
@@ -32,29 +32,29 @@
end
it 'should ignore gem' do
allow(Utils.logger).to receive(:info)
.once.with('Fetching gemirro-0.0.1.gem')
- expect(@fetcher.ignore_gem?('gemirro', '0.0.1')).to be_falsy
- Utils.configuration.ignore_gem('gemirro', '0.0.1')
- expect(@fetcher.ignore_gem?('gemirro', '0.0.1')).to be_truthy
+ expect(@fetcher.ignore_gem?('gemirro', '0.0.1', 'ruby')).to be_falsy
+ Utils.configuration.ignore_gem('gemirro', '0.0.1', 'ruby')
+ expect(@fetcher.ignore_gem?('gemirro', '0.0.1', 'ruby')).to be_truthy
end
it 'should log error when fetch gem failed' do
allow(Utils.logger).to receive(:info)
.once.with('Fetching gemirro-0.0.1.gem')
gem = Gem.new('gemirro')
version = ::Gem::Version.new('0.0.1')
- Utils.configuration.ignore_gem('gemirro', '0.0.1')
+ Utils.configuration.ignore_gem('gemirro', '0.0.1', 'ruby')
allow(@source).to receive(:fetch_gem)
.once.with('gemirro', version).and_raise(ArgumentError)
allow(Utils.logger).to receive(:error)
.once.with(/Failed to retrieve/)
allow(Utils.logger).to receive(:debug)
.once.with(/Adding (.*) to the list of ignored Gems/)
expect(@fetcher.fetch_gem(gem, version)).to be_nil
- expect(@fetcher.ignore_gem?('gemirro', '0.0.1')).to be_truthy
+ expect(@fetcher.ignore_gem?('gemirro', '0.0.1', 'ruby')).to be_truthy
end
it 'should fetch gem' do
allow(Utils.logger).to receive(:info)
.once.with('Fetching gemirro-0.0.1.gem')