summaryrefslogtreecommitdiff
path: root/spec/graphql/mutations/todos/mark_done_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/graphql/mutations/todos/mark_done_spec.rb')
-rw-r--r--spec/graphql/mutations/todos/mark_done_spec.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/graphql/mutations/todos/mark_done_spec.rb b/spec/graphql/mutations/todos/mark_done_spec.rb
index 059ef3c8eee..44065f83f74 100644
--- a/spec/graphql/mutations/todos/mark_done_spec.rb
+++ b/spec/graphql/mutations/todos/mark_done_spec.rb
@@ -16,6 +16,8 @@ describe Mutations::Todos::MarkDone do
let(:mutation) { described_class.new(object: nil, context: { current_user: current_user }, field: nil) }
+ specify { expect(described_class).to require_graphql_authorizations(:update_todo) }
+
describe '#resolve' do
it 'marks a single todo as done' do
result = mark_done_mutation(todo1)