debian-mirror-gitlab/spec/support/shared_examples/lib/gitlab/gl_repository_shared_examples.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
302 B
Ruby
Raw Normal View History

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