Welcome to mirror list, hosted at ThFree Co, Russian Federation.

invalid_metadata.rb « rubygems « packages « services « shared_contexts « support « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b6b962e5c08c8e993b0e3af0e1f2a207adc83071 (plain)
1
2
3
4
5
6
7
8
9
# frozen_string_literal: true

RSpec.shared_context 'with invalid Rubygems metadata' do
  before do
    allow_next_instance_of(::Packages::Rubygems::MetadataExtractionService) do |instance|
      allow(instance).to receive(:execute).and_raise(ActiveRecord::StatementInvalid)
    end
  end
end