diff options
Diffstat (limited to 'spec/graphql/mutations/issues/set_confidential_spec.rb')
-rw-r--r-- | spec/graphql/mutations/issues/set_confidential_spec.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/spec/graphql/mutations/issues/set_confidential_spec.rb b/spec/graphql/mutations/issues/set_confidential_spec.rb index 0b2fc0ecb93..c3269e5c0c0 100644 --- a/spec/graphql/mutations/issues/set_confidential_spec.rb +++ b/spec/graphql/mutations/issues/set_confidential_spec.rb @@ -17,9 +17,7 @@ RSpec.describe Mutations::Issues::SetConfidential do subject { mutation.resolve(project_path: project.full_path, iid: issue.iid, confidential: confidential) } - it 'raises an error if the resource is not accessible to the user' do - expect { subject }.to raise_error(Gitlab::Graphql::Errors::ResourceNotAvailable) - end + it_behaves_like 'permission level for issue mutation is correctly verified' context 'when the user can update the issue' do before do |