Fix factories
All checks were successful
Run unit tests / unit_tests (pull_request) Successful in 2m12s

This commit is contained in:
Manuel Bustillo 2024-08-11 18:59:27 +02:00
parent de93ffb643
commit c177131672
2 changed files with 3 additions and 2 deletions

View File

@ -1,7 +1,6 @@
FactoryBot.define do FactoryBot.define do
factory :group do factory :group do
name { "MyString" } sequence(:name) { |i| "Group #{i}" }
icon { "MyString" }
order { 1 } order { 1 }
end end
end end

View File

@ -1,5 +1,7 @@
FactoryBot.define do FactoryBot.define do
factory :guest do factory :guest do
association :group
first_name { Faker::Name.first_name } first_name { Faker::Name.first_name }
last_name { Faker::Name.last_name } last_name { Faker::Name.last_name }
email { Faker::Internet.email } email { Faker::Internet.email }