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

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

RSpec.shared_context 'container registry tags' do
  def stub_next_container_registry_tags_call(method_name, mock_value)
    allow_next_instance_of(ContainerRegistry::Tag) do |tag|
      allow(tag).to receive(method_name).and_return(mock_value)
    end
  end
end