diff options
Diffstat (limited to 'spec/graphql/mutations/todos/mark_done_spec.rb')
-rw-r--r-- | spec/graphql/mutations/todos/mark_done_spec.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/graphql/mutations/todos/mark_done_spec.rb b/spec/graphql/mutations/todos/mark_done_spec.rb index 51ad3e1a5d7..b5f2ff5d044 100644 --- a/spec/graphql/mutations/todos/mark_done_spec.rb +++ b/spec/graphql/mutations/todos/mark_done_spec.rb @@ -52,7 +52,8 @@ RSpec.describe Mutations::Todos::MarkDone do end it 'ignores invalid GIDs' do - expect { mutation.resolve(id: 'invalid_gid') }.to raise_error(Gitlab::Graphql::Errors::ArgumentError) + expect { mutation.resolve(id: author.to_global_id.to_s) } + .to raise_error(::GraphQL::CoercionError) expect(todo1.reload.state).to eq('pending') expect(todo2.reload.state).to eq('done') |