From d2f5d3594e18947f0c224d114d2042438114ede3 Mon Sep 17 00:00:00 2001 From: Malaber <32635600+Malaber@users.noreply.github.com> Date: Fri, 10 May 2019 22:04:20 +0200 Subject: [PATCH] Test performance optimization In general this generates less unnecessary faker data --- .../add_group_stage_to_tournament_interactor_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/interactors/add_group_stage_to_tournament_interactor_spec.rb b/spec/interactors/add_group_stage_to_tournament_interactor_spec.rb index b64c752..0170d33 100644 --- a/spec/interactors/add_group_stage_to_tournament_interactor_spec.rb +++ b/spec/interactors/add_group_stage_to_tournament_interactor_spec.rb @@ -10,8 +10,8 @@ RSpec.describe AddGroupStageToTournament do end before do - @empty_tournament = create(:stage_tournament, stage_count: 0) - @group_stage_tournament = create(:group_stage_tournament) + @empty_tournament = create(:stage_less_tournament) + @group_stage_tournament = create(:group_stage_only_tournament, group_count: 0) @group_stage = create(:group_stage) @groups = Hash[1 => create_list(:team, 4), 2 => create_list(:team, 4)].values end