summaryrefslogtreecommitdiff
path: root/spec/support/shared_examples/lib/gitlab/gl_repository_shared_examples.rb
blob: 28137530038d62c0917b9e22eb7be4e8f084aa79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# 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