debian-mirror-gitlab/spec/support/shared_contexts/lib/container_registry/tags_shared_context.rb
2021-02-22 17:27:13 +05:30

10 lines
293 B
Ruby

# 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