fix system specs by adding zone for new procedure
This commit is contained in:
parent
f4977f358b
commit
00536b949a
4 changed files with 5 additions and 3 deletions
|
@ -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',
|
||||
|
|
|
@ -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: [] }],
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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) }
|
||||
|
|
Loading…
Reference in a new issue