blob: 48824a4b0d2d402d0de2de5c4329d1ba79f19af5 (
plain)
1
2
3
4
5
6
7
8
9
10
|
# frozen_string_literal: true
RSpec.shared_examples 'when the snippet is not found' do
let(:snippet_gid) do
"gid://gitlab/#{snippet.class.name}/#{non_existing_record_id}"
end
it_behaves_like 'a mutation that returns top-level errors',
errors: [Gitlab::Graphql::Authorize::AuthorizeResource::RESOURCE_ACCESS_ERROR]
end
|