add more tests for phone numbers

This commit is contained in:
clemkeirua 2020-09-08 15:31:06 +02:00
parent 7038ca6c04
commit a62907f33b
3 changed files with 56 additions and 0 deletions

View file

@ -182,6 +182,12 @@ FactoryBot.define do
end
end
trait :with_phone do
after(:build) do |procedure, _evaluator|
build(:type_de_champ_phone, procedure: procedure)
end
end
trait :published do
after(:build) do |procedure, _evaluator|
procedure.path = generate(:published_path)