diff options
Diffstat (limited to 'spec/graphql/mutations/todos/mark_all_done_spec.rb')
-rw-r--r-- | spec/graphql/mutations/todos/mark_all_done_spec.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/graphql/mutations/todos/mark_all_done_spec.rb b/spec/graphql/mutations/todos/mark_all_done_spec.rb index 98b22a3e761..4af00307969 100644 --- a/spec/graphql/mutations/todos/mark_all_done_spec.rb +++ b/spec/graphql/mutations/todos/mark_all_done_spec.rb @@ -17,6 +17,8 @@ describe Mutations::Todos::MarkAllDone do let_it_be(:user3) { create(:user) } + specify { expect(described_class).to require_graphql_authorizations(:update_user) } + describe '#resolve' do it 'marks all pending todos as done' do updated_todo_ids = mutation_for(current_user).resolve.dig(:updated_ids) |