Revert "A group_match always has match_scores attached"
This reverts commit 78617793
This commit is contained in:
parent
dabddd6702
commit
227493f4c7
|
|
@ -34,10 +34,13 @@ FactoryBot.define do
|
|||
factory :group_match, class: Match do
|
||||
group
|
||||
position { 0 }
|
||||
transient do
|
||||
match_scores_count { 2 }
|
||||
end
|
||||
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 { :in_progress }
|
||||
end
|
||||
|
||||
|
|
@ -50,9 +53,5 @@ FactoryBot.define do
|
|||
end
|
||||
state { :finished }
|
||||
end
|
||||
|
||||
after(:create) do |match, evaluator|
|
||||
match.match_scores = create_list(:match_score, evaluator.match_scores_count)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in New Issue