Move group_stage tournament into stage tournament
This commit is contained in:
parent
46fbdd667e
commit
8785c2075d
|
|
@ -19,11 +19,11 @@ FactoryBot.define do
|
||||||
after(:create) do |tournament, evaluator|
|
after(:create) do |tournament, evaluator|
|
||||||
tournament.stages = create_list(:stage, evaluator.stage_count)
|
tournament.stages = create_list(:stage, evaluator.stage_count)
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
factory :group_stage_tournament do
|
factory :group_stage_tournament do
|
||||||
after(:create) do |tournament, _evaluator|
|
after(:create) do |tournament, _evaluator|
|
||||||
tournament.stages = create_list(:group_stage, 1)
|
tournament.stages.concat create_list(:group_stage, 1)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue