Create factory for :single_team_match
This commit is contained in:
parent
e0da9ff7b5
commit
f35ba5c745
|
|
@ -14,6 +14,13 @@ FactoryBot.define do
|
|||
state { :in_progress }
|
||||
end
|
||||
|
||||
factory :single_team_match do
|
||||
state { :single_team }
|
||||
after(:create) do |match|
|
||||
match.match_scores = [create(:match_score, points: 0)]
|
||||
end
|
||||
end
|
||||
|
||||
factory :empty_prepared_playoff_match do
|
||||
state { :not_ready }
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in New Issue