add more tests for phone numbers
This commit is contained in:
parent
7038ca6c04
commit
a62907f33b
3 changed files with 56 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue