someone will hopefully suqash this
This commit is contained in:
parent
3ea49f6d20
commit
279973ac22
|
|
@ -2,8 +2,15 @@
|
||||||
|
|
||||||
FactoryBot.define do
|
FactoryBot.define do
|
||||||
factory :group do
|
factory :group do
|
||||||
|
transient do
|
||||||
|
match_count { 4 }
|
||||||
|
end
|
||||||
|
|
||||||
sequence(:number)
|
sequence(:number)
|
||||||
stage
|
stage
|
||||||
group_match
|
|
||||||
|
after(:create) do |group, evaluator|
|
||||||
|
create_list(:group_match, evaluator.match_count, group: group)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue