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')