[Fix #2276] Test to ensure form is not cleared if service creation failed

This commit is contained in:
Mathieu Magnin 2018-10-30 15:17:18 +01:00
parent e90c541ab4
commit c656e36ec2

View file

@ -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