Skip to content

Commit

Permalink
expect our mock specifically
Browse files Browse the repository at this point in the history
  • Loading branch information
dlpierce committed Jan 23, 2025
1 parent 7a90f3e commit e1c8877
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@

it "is successful" do
delete :destroy, params: { id: 1 }
expect(controller).to have_received(:authorize!).with(:destroy, Sipity::WorkflowResponsibility)
expect(controller).to have_received(:authorize!).with(:destroy, responsibility)
expect(response).to redirect_to admin_workflow_roles_path
end
end
Expand Down

0 comments on commit e1c8877

Please sign in to comment.