From e1c88770e0d832a8efb9da59651fc86c7215592d Mon Sep 17 00:00:00 2001 From: Daniel Pierce Date: Thu, 23 Jan 2025 12:52:34 -0500 Subject: [PATCH] expect our mock specifically --- spec/controllers/hyrax/admin/workflow_roles_controller_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/controllers/hyrax/admin/workflow_roles_controller_spec.rb b/spec/controllers/hyrax/admin/workflow_roles_controller_spec.rb index 9a8619834d..fe88f659a0 100644 --- a/spec/controllers/hyrax/admin/workflow_roles_controller_spec.rb +++ b/spec/controllers/hyrax/admin/workflow_roles_controller_spec.rb @@ -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