gitlab-org--gitlab-foss/spec/support/shared_examples/lib/gitlab/gl_repository_shared_exampl...

13 lines
302 B
Ruby

# frozen_string_literal: true
RSpec.shared_examples 'parsing gl_repository identifier' do
subject { described_class.parse(identifier) }
it 'returns correct information' do
expect(subject).to have_attributes(
repo_type: expected_type,
container: expected_container
)
end
end