turniere-backend/spec/factories
Daniel Schädler 7afb5ae552 Create realistic number of Matches
When match_count is -1 the number of matches generated is automatically
2 ^ stage.level -> This is the amount of stages present in a "real"
tournament stage. When supplying a positive number, it generates that
many matches like before.

This also now adds the position to the match list after creating them
2019-05-22 09:25:07 +02:00
..
group_scores.rb Add valid factories for all models 2018-11-19 14:50:41 +01:00
groups.rb Add multiple factories 2019-05-04 20:34:57 +02:00
match_scores.rb Change Score to MatchScore & MatchScore score attribute to points 2018-11-30 14:15:48 +01:00
matches.rb Add :undecided_group_match and :decided_playoff_match 2019-05-22 09:25:07 +02:00
stages.rb Create realistic number of Matches 2019-05-22 09:25:07 +02:00
teams.rb Replace deprecated Faker::Dog 2019-04-03 09:45:56 +02:00
tournaments.rb Manually create the list of stages to assign stage levels correctly 2019-05-22 09:25:07 +02:00
users.rb Add password to User factory 2019-04-23 10:48:25 +02:00