remove old logic test
This commit is contained in:
parent
ba5c64ea84
commit
6e88c49470
1 changed files with 0 additions and 10 deletions
|
@ -412,16 +412,6 @@ describe Users::DossiersController, type: :controller do
|
|||
it { expect(flash.alert).to eq(["Le champ « l » doit être rempli, #{anchor_to_first_champ}"]) }
|
||||
end
|
||||
|
||||
context 'when a dossier is invalid' do
|
||||
before do
|
||||
allow_any_instance_of(Dossier).to receive(:groupe_instructeur).and_return(double(nil?: true))
|
||||
subject
|
||||
end
|
||||
|
||||
it { expect(response).to render_template(:brouillon) }
|
||||
it { expect(flash.alert).to eq(["Le champ « Votre ville » doit être rempli"]) }
|
||||
end
|
||||
|
||||
context 'when dossier has no champ' do
|
||||
let(:submit_payload) { { id: dossier.id } }
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue