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

Expect services to be nil if unauthorized

parent f4fe15fe
......@@ -8,8 +8,6 @@ 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)
expect(resolve_services).to be_nil
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