Skip to content

Commit

Permalink
For some reason, we're calling this method twice in rails 7
Browse files Browse the repository at this point in the history
  • Loading branch information
jrafanie committed Aug 2, 2024
1 parent 9a50664 commit 63dae15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/controllers/vm_infra_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 63dae15

Please sign in to comment.