fix bug test
This commit is contained in:
parent
91e937c247
commit
0c2d1d70ff
2 changed files with 1 additions and 2 deletions
|
@ -32,7 +32,7 @@ RSpec.describe Users::CarteController, type: :controller do
|
|||
end
|
||||
|
||||
context 'En train de modifier la localisation' do
|
||||
let(:dossier) { create(:dossier, :with_procedure, :with_user, ref_dossier_carto: ref_dossier_carto) }
|
||||
let(:dossier) { create(:dossier, :with_procedure, :with_user, ref_dossier_carto: ref_dossier_carto, state: 'proposed') }
|
||||
before do
|
||||
post :save_ref_api_carto, dossier_id: dossier_id, ref_dossier_carto: ref_dossier_carto
|
||||
end
|
||||
|
|
|
@ -147,7 +147,6 @@ describe Users::DossiersController, type: :controller do
|
|||
|
||||
before do
|
||||
put :update, id: dossier_id, dossier: { autorisation_donnees: autorisation_donnees }
|
||||
p dossier.procedure.use_api_carto
|
||||
end
|
||||
it 'redirects to carte' do
|
||||
expect(response).to redirect_to(controller: :carte, action: :show, dossier_id: dossier.id)
|
||||
|
|
Loading…
Reference in a new issue