15 lines
348 B
Ruby
15 lines
348 B
Ruby
# frozen_string_literal: true
|
|
|
|
shared_examples 'no project services' do
|
|
it 'returns empty collection' do
|
|
expect(resolve_services).to eq []
|
|
end
|
|
end
|
|
|
|
shared_examples 'cannot access project services' do
|
|
it 'raises error' do
|
|
expect do
|
|
resolve_services
|
|
end.to raise_error(Gitlab::Graphql::Errors::ResourceNotAvailable)
|
|
end
|
|
end
|