2020-06-23 00:09:42 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
RSpec.shared_examples 'parsing gl_repository identifier' do
|
2020-07-28 23:09:34 +05:30
|
|
|
subject { described_class.parse(identifier) }
|
2020-06-23 00:09:42 +05:30
|
|
|
|
|
|
|
it 'returns correct information' do
|
2020-07-28 23:09:34 +05:30
|
|
|
expect(subject).to have_attributes(
|
|
|
|
repo_type: expected_type,
|
|
|
|
container: expected_container
|
|
|
|
)
|
2020-06-23 00:09:42 +05:30
|
|
|
end
|
|
|
|
end
|