[Fix #2276] Test to ensure form is not cleared if service creation failed
This commit is contained in:
parent
e90c541ab4
commit
c656e36ec2
1 changed files with 1 additions and 0 deletions
|
@ -43,6 +43,7 @@ describe NewAdministrateur::ServicesController, type: :controller do
|
|||
|
||||
it { expect(flash.alert).not_to be_nil }
|
||||
it { expect(response).to render_template(:new) }
|
||||
it { expect(assigns(:service).nom).to eq('super service') }
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue