9fd38cae5e
System specs have been available since Rails 5.1, and are better integrated with the Rails framework. - Rename `spec/features` to `spec/system` - Rename `feature do` to `describe do` - Configure Capybara for system specs Steps mostly taken from https://medium.com/table-xi/a-quick-guide-to-rails-system-tests-in-rspec-b6e9e8a8b5f6
8 lines
366 B
Ruby
8 lines
366 B
Ruby
module ProcedureSpecHelper
|
|
def fill_in_dummy_procedure_details(fill_path: true)
|
|
fill_in 'procedure_libelle', with: 'libelle de la procedure'
|
|
fill_in 'procedure_description', with: 'description de la procedure'
|
|
fill_in 'procedure_cadre_juridique', with: 'cadre juridique'
|
|
fill_in 'procedure_duree_conservation_dossiers_dans_ds', with: '3'
|
|
end
|
|
end
|