diff options
Diffstat (limited to 'spec/graphql/mutations/issues/set_locked_spec.rb')
-rw-r--r-- | spec/graphql/mutations/issues/set_locked_spec.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/spec/graphql/mutations/issues/set_locked_spec.rb b/spec/graphql/mutations/issues/set_locked_spec.rb index 10438226c17..1a0af0c6c63 100644 --- a/spec/graphql/mutations/issues/set_locked_spec.rb +++ b/spec/graphql/mutations/issues/set_locked_spec.rb @@ -15,9 +15,7 @@ RSpec.describe Mutations::Issues::SetLocked do subject { mutation.resolve(project_path: issue.project.full_path, iid: issue.iid, locked: locked) } - 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 let(:mutated_issue) { subject[:issue] } |