add specs

This commit is contained in:
Bilal
2020-07-27 15:52:32 +02:00
parent bd8e9e421d
commit de9f4a09e8
2 changed files with 286 additions and 5 deletions

View File

@@ -15,6 +15,16 @@ FactoryBot.define do
end
end
trait :minor do
minor true
guardian_first_name "Guardian1"
guardian_last_name "First"
guardian_2_first_name "Guardian2"
guardian_2_last_name "Second"
guardian_phone "1111"
guardian_2_phone "2222"
end
trait :with_photo do
photos do
path = Rails.root.join("spec", "fixtures", "files", "material_photo.png")