summaryrefslogtreecommitdiff
path: root/spec/support/shared_examples/graphql/projects/services_resolver_shared_examples.rb
blob: 16c2ab07f3aac9ea1a71ca53857a7f45703daff7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

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

RSpec.shared_examples 'cannot access project services' do
  it 'raises error' do
    expect(resolve_services).to be_nil
  end
end