fix bug test

This commit is contained in:
Xavier J 2015-09-28 18:58:10 +02:00
parent 91e937c247
commit 0c2d1d70ff
2 changed files with 1 additions and 2 deletions

View file

@ -32,7 +32,7 @@ RSpec.describe Users::CarteController, type: :controller do
end end
context 'En train de modifier la localisation' do 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 before do
post :save_ref_api_carto, dossier_id: dossier_id, ref_dossier_carto: ref_dossier_carto post :save_ref_api_carto, dossier_id: dossier_id, ref_dossier_carto: ref_dossier_carto
end end

View file

@ -147,7 +147,6 @@ describe Users::DossiersController, type: :controller do
before do before do
put :update, id: dossier_id, dossier: { autorisation_donnees: autorisation_donnees } put :update, id: dossier_id, dossier: { autorisation_donnees: autorisation_donnees }
p dossier.procedure.use_api_carto
end end
it 'redirects to carte' do it 'redirects to carte' do
expect(response).to redirect_to(controller: :carte, action: :show, dossier_id: dossier.id) expect(response).to redirect_to(controller: :carte, action: :show, dossier_id: dossier.id)