Reformat indention
This commit is contained in:
parent
d548eee245
commit
b5377db1f3
|
|
@ -28,14 +28,12 @@ FactoryBot.define do
|
||||||
after(:create) do |tournament, evaluator|
|
after(:create) do |tournament, evaluator|
|
||||||
# this is basically a manual create_list as we need to count up the level of the stage
|
# this is basically a manual create_list as we need to count up the level of the stage
|
||||||
(1..evaluator.stage_count).each do |level|
|
(1..evaluator.stage_count).each do |level|
|
||||||
tournament.stages << create(:playoff_stage,
|
tournament.stages << create(
|
||||||
level: level,
|
:playoff_stage,
|
||||||
match_count: -1,
|
level: level,
|
||||||
match_type: if evaluator.stage_count
|
match_count: -1,
|
||||||
:running_playoff_match
|
match_type: evaluator.stage_count ? :running_playoff_match : :empty_prepared_playoff_match
|
||||||
else
|
)
|
||||||
:empty_prepared_playoff_match
|
|
||||||
end)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue