Commit Graph

28 Commits

Author SHA1 Message Date
Daniel Schädler 8d4cb4a443 Add dummy_stage_tournament 2019-05-13 13:12:44 +02:00
Daniel Schädler e3ce8d9202 Add position to all matches 2019-05-13 13:12:44 +02:00
Daniel Schädler 81c41b2596 Makes match_type configurable instead of only setting its state 2019-05-13 13:12:44 +02:00
Daniel Schädler e7057b8f29 Add empty_prepared_playoff_match 2019-05-13 13:12:44 +02:00
Thor77 9c6b7422bd Save match position 2019-05-13 13:12:44 +02:00
Daniel Schädler 0233ecab2c For stage tournament, first stage has running matches 2019-05-13 13:12:44 +02:00
Daniel Schädler bfaa270808 Put running playoff matches in a playoff stage (only on first level) 2019-05-13 13:12:44 +02:00
Daniel Schädler b5d71f33ca 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-13 13:12:44 +02:00
Daniel Schädler 31a57572dc Manually create the list of stages to assign stage levels correctly 2019-05-13 13:12:44 +02:00
Daniel Schädler ecafc0e258 Move group_stage tournament into stage tournament 2019-05-13 13:12:44 +02:00
Daniel Schädler 002f59ecd8 Add :undecided_group_match and :decided_playoff_match 2019-05-13 13:12:44 +02:00
Daniel Schädler babc233412 Adds :playoff_stage as factory 2019-05-04 20:34:57 +02:00
Daniel Schädler 0f7279de97 Add running_group_match factory 2019-05-04 20:34:57 +02:00
Daniel Schädler 3fc344249d Add multiple factories 2019-05-04 20:34:57 +02:00
Daniel Schädler f47ffebcd4 Makes Groups have different incrementing numbers 2019-05-04 20:34:57 +02:00
Thor77 847f4a1c69 Add password to User factory 2019-04-23 10:48:25 +02:00
Thor77 d7a8504b45 Replace deprecated Faker::Dog 2019-04-03 09:45:56 +02:00
Daniel Schädler 68f9b3b2b3 Change Score to MatchScore & MatchScore score attribute to points
This is done to improve the naming and therefore make things easier to understand.
2018-11-30 14:15:48 +01:00
Daniel Schädler 8e7869b879 Improve Factories 2018-11-29 11:01:52 +01:00
Daniel Schädler 34159f7e01 Add a running playoff Match to Match Factory 2018-11-29 11:01:17 +01:00
Daniel Schädler fbb87f5f7c Add a tournament with stages to factory 2018-11-29 10:48:26 +01:00
Thor77 9a41b19e97
Add team factory without parent tournament 2018-11-25 22:55:49 +01:00
Thor77 673e12c052 Validate Stage xor Group present in match 2018-11-20 16:03:58 +01:00
Thor77 1cd4835651 Add valid factories for all models 2018-11-19 14:50:41 +01:00
Thor77 def5de2a7e
Add factories for groups, matches, scores & stages 2018-11-19 11:47:13 +01:00
Thor77 579412ab89
Add teams and group scores factory 2018-11-19 11:47:12 +01:00
Thor77 3043c9f0d7
Add User factory 2018-11-19 11:47:12 +01:00
Thor77 ff63380c9c
Add Tournament model spec and factory 2018-11-19 11:47:12 +01:00