Create factory for :single_team_match

This commit is contained in:
Daniel Schädler 2019-06-13 00:43:26 +02:00
parent e0da9ff7b5
commit f35ba5c745
1 changed files with 7 additions and 0 deletions

View File

@ -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