👋 update_attributes
You served us well...
This commit is contained in:
parent
ca80b753e7
commit
85dae98a76
46 changed files with 109 additions and 109 deletions
|
|
@ -316,7 +316,7 @@ describe ConferenceRegistrationsController, type: :controller do
|
|||
|
||||
context 'update fails' do
|
||||
before do
|
||||
allow_any_instance_of(Registration).to receive(:update_attributes).and_return(false)
|
||||
allow_any_instance_of(Registration).to receive(:update).and_return(false)
|
||||
patch :update, params: {
|
||||
registration: attributes_for(:registration, volunteer: true),
|
||||
conference_id: conference.short_title
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue