diff --git a/spec/factories/matches.rb b/spec/factories/matches.rb index 773151f..3f0a89c 100644 --- a/spec/factories/matches.rb +++ b/spec/factories/matches.rb @@ -16,5 +16,14 @@ FactoryBot.define do factory :group_match, class: Match do group + factory :running_group_match do + transient do + match_scores_count { 2 } + end + after(:create) do |match, evaluator| + match.match_scores = create_list(:match_score, evaluator.match_scores_count) + end + state { 3 } + end end end