Welcome to mirror list, hosted at ThFree Co, Russian Federation.

services_resolver_shared_examples.rb « projects « graphql « shared_examples « support « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 94b7ed1618df9a4d248abfe493d718701716b1ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

RSpec.shared_examples 'no project services' do
  it 'returns empty collection' do
    expect(resolve_services).to eq []
  end
end

RSpec.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