Fix factories
All checks were successful
Run unit tests / unit_tests (pull_request) Successful in 2m12s
All checks were successful
Run unit tests / unit_tests (pull_request) Successful in 2m12s
This commit is contained in:
parent
de93ffb643
commit
c177131672
@ -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
|
||||||
|
@ -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 }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user