Reduce standart amount of teams within a tournament to 8

This commit is contained in:
Daniel Schädler 2019-05-10 18:49:39 +02:00
parent 8d4cb4a443
commit 9ec867c07e
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ FactoryBot.define do
description { Faker::Lorem.sentence } description { Faker::Lorem.sentence }
user user
transient do transient do
teams_count { 16 } teams_count { 8 }
end end
after(:create) do |tournament, evaluator| after(:create) do |tournament, evaluator|
tournament.teams = create_list(:team, evaluator.teams_count, tournament: tournament) tournament.teams = create_list(:team, evaluator.teams_count, tournament: tournament)