summaryrefslogtreecommitdiff
path: root/spec/graphql/mutations/issues/update_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/graphql/mutations/issues/update_spec.rb')
-rw-r--r--spec/graphql/mutations/issues/update_spec.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/spec/graphql/mutations/issues/update_spec.rb b/spec/graphql/mutations/issues/update_spec.rb
index f9f4bdeb6fa..ce1eb874bcf 100644
--- a/spec/graphql/mutations/issues/update_spec.rb
+++ b/spec/graphql/mutations/issues/update_spec.rb
@@ -35,11 +35,7 @@ RSpec.describe Mutations::Issues::Update do
subject { mutation.resolve(mutation_params) }
- context 'when the user cannot access the issue' do
- it 'raises an error' do
- expect { subject }.to raise_error(Gitlab::Graphql::Errors::ResourceNotAvailable)
- end
- end
+ it_behaves_like 'permission level for issue mutation is correctly verified'
context 'when the user can update the issue' do
before do