diff --git a/spec/system/administrateurs/procedure_attestation_template_spec.rb b/spec/system/administrateurs/procedure_attestation_template_spec.rb index f0633b151..3b4e27b3b 100644 --- a/spec/system/administrateurs/procedure_attestation_template_spec.rb +++ b/spec/system/administrateurs/procedure_attestation_template_spec.rb @@ -5,7 +5,7 @@ describe 'As an administrateur, I want to manage the procedure’s attestation', let(:administrateur) { create(:administrateur) } let(:procedure) do - create(:procedure, :with_service, :with_instructeur, + create(:procedure, :with_service, :with_instructeur, :with_zone, aasm_state: :brouillon, administrateurs: [administrateur], libelle: 'libellé de la procédure', diff --git a/spec/system/administrateurs/procedure_publish_spec.rb b/spec/system/administrateurs/procedure_publish_spec.rb index e459ebf8c..8fab1137b 100644 --- a/spec/system/administrateurs/procedure_publish_spec.rb +++ b/spec/system/administrateurs/procedure_publish_spec.rb @@ -10,6 +10,7 @@ describe 'Publishing a procedure', js: true do :with_path, :with_type_de_champ, :with_service, + :with_zone, instructeurs: instructeurs, administrateur: administrateur) end @@ -51,6 +52,7 @@ describe 'Publishing a procedure', js: true do create(:procedure, :with_path, :with_service, + :with_zone, instructeurs: instructeurs, administrateur: administrateur, types_de_champ_public: [{ type: :repetition, libelle: 'Enfants', children: [] }, { type: :drop_down_list, libelle: 'Civilité', options: [] }], diff --git a/spec/system/api_particulier/api_particulier_spec.rb b/spec/system/api_particulier/api_particulier_spec.rb index 38d0d5546..7d122593c 100644 --- a/spec/system/api_particulier/api_particulier_spec.rb +++ b/spec/system/api_particulier/api_particulier_spec.rb @@ -44,7 +44,7 @@ describe 'fetch API Particulier Data', js: true do context 'when an administrateur is logged in' do let(:procedure) do - create(:procedure, :with_service, :with_instructeur, + create(:procedure, :with_service, :with_instructeur, :with_zone, aasm_state: :brouillon, administrateurs: [administrateur], libelle: 'libellé de la procédure', diff --git a/spec/system/routing/full_scenario_spec.rb b/spec/system/routing/full_scenario_spec.rb index 97328fcb7..4524d22f7 100644 --- a/spec/system/routing/full_scenario_spec.rb +++ b/spec/system/routing/full_scenario_spec.rb @@ -1,6 +1,6 @@ describe 'The routing', js: true do let(:password) { 'a very complicated password' } - let(:procedure) { create(:procedure, :with_type_de_champ, :with_service, :for_individual) } + let(:procedure) { create(:procedure, :with_type_de_champ, :with_service, :for_individual, :with_zone) } let(:administrateur) { create(:administrateur, procedures: [procedure]) } let(:scientifique_user) { create(:user, password: password) } let(:litteraire_user) { create(:user, password: password) }