procedure: select for_individual
by default
This commit is contained in:
parent
9616df192d
commit
7ca3d5fce2
2 changed files with 3 additions and 1 deletions
|
@ -62,7 +62,7 @@ class Admin::ProceduresController < AdminController
|
||||||
end
|
end
|
||||||
|
|
||||||
def new
|
def new
|
||||||
@procedure ||= Procedure.new
|
@procedure ||= Procedure.new(for_individual: true)
|
||||||
@availability = Procedure::PATH_AVAILABLE
|
@availability = Procedure::PATH_AVAILABLE
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -36,6 +36,8 @@ feature 'As an administrateur I wanna create a new procedure', js: true do
|
||||||
click_on 'from-scratch'
|
click_on 'from-scratch'
|
||||||
|
|
||||||
expect(page).to have_current_path(new_admin_procedure_path)
|
expect(page).to have_current_path(new_admin_procedure_path)
|
||||||
|
expect(find('#procedure_for_individual_true')).to be_checked
|
||||||
|
expect(find('#procedure_for_individual_false')).not_to be_checked
|
||||||
fill_in 'procedure_duree_conservation_dossiers_dans_ds', with: '3'
|
fill_in 'procedure_duree_conservation_dossiers_dans_ds', with: '3'
|
||||||
fill_in 'procedure_duree_conservation_dossiers_hors_ds', with: '6'
|
fill_in 'procedure_duree_conservation_dossiers_hors_ds', with: '6'
|
||||||
click_on 'save-procedure'
|
click_on 'save-procedure'
|
||||||
|
|
Loading…
Add table
Reference in a new issue