Commit 29e98cc2 authored by Alex Kalderimis's avatar Alex Kalderimis

Expect services to be nil if unauthorized

parent f4fe15fe
...@@ -8,8 +8,6 @@ end ...@@ -8,8 +8,6 @@ end
RSpec.shared_examples 'cannot access project services' do RSpec.shared_examples 'cannot access project services' do
it 'raises error' do it 'raises error' do
expect do expect(resolve_services).to be_nil
resolve_services
end.to raise_error(Gitlab::Graphql::Errors::ResourceNotAvailable)
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment