From 63dae15a6b60d05e87dd58c002e6401a4a39d24c Mon Sep 17 00:00:00 2001 From: Joe Rafaniello Date: Thu, 25 Jul 2024 16:40:31 -0400 Subject: [PATCH] For some reason, we're calling this method twice in rails 7 --- spec/controllers/vm_infra_controller_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/controllers/vm_infra_controller_spec.rb b/spec/controllers/vm_infra_controller_spec.rb index 648718668e8..8c8175db115 100644 --- a/spec/controllers/vm_infra_controller_spec.rb +++ b/spec/controllers/vm_infra_controller_spec.rb @@ -75,7 +75,7 @@ # http://localhost:3000/vm_infra/show/10000000000449 it 'can display VM details for vm with ems_custom_attributes and a null attribute name' do vm_vmware.ems_custom_attributes.push(custom_attr1, custom_attr2) - expect(controller).to receive(:identify_record).and_return(vm_vmware) + expect(controller).to receive(:identify_record).twice.and_return(vm_vmware) get :show, :params => { :id => vm_vmware.id } expect(response).to redirect_to(:action => 'explorer')