From ecafc0e2581426139ad993ea25e7520a1af11cb5 Mon Sep 17 00:00:00 2001 From: Malaber <32635600+Malaber@users.noreply.github.com> Date: Thu, 9 May 2019 16:09:37 +0200 Subject: [PATCH] Move group_stage tournament into stage tournament --- spec/factories/tournaments.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/factories/tournaments.rb b/spec/factories/tournaments.rb index 6924332..5c07c91 100644 --- a/spec/factories/tournaments.rb +++ b/spec/factories/tournaments.rb @@ -19,11 +19,11 @@ FactoryBot.define do after(:create) do |tournament, evaluator| tournament.stages = create_list(:stage, evaluator.stage_count) end - end - factory :group_stage_tournament do - after(:create) do |tournament, _evaluator| - tournament.stages = create_list(:group_stage, 1) + factory :group_stage_tournament do + after(:create) do |tournament, _evaluator| + tournament.stages.concat create_list(:group_stage, 1) + end end end end