Commit Graph

32 Commits

Author SHA1 Message Date
Daniel Schädler df19c85196 wip please dont push me 2019-05-12 18:50:23 +02:00
Daniel Schädler 43b3d2dfe8 Add group_stage_only_tournament factory 2019-05-11 17:42:37 +02:00
Daniel Schädler 6d7e94b834 Remove link between team.owner and tournament 2019-05-11 17:42:37 +02:00
Daniel Schädler f51de2f68c Reduce standart amount of teams within a tournament to 8 2019-05-11 17:42:37 +02:00
Daniel Schädler a6c46c48d5 Add dummy_stage_tournament 2019-05-11 17:42:37 +02:00
Daniel Schädler 05a35557db Add position to all matches 2019-05-11 17:42:37 +02:00
Daniel Schädler 9147cf94c5 Makes match_type configurable instead of only setting its state 2019-05-11 17:42:37 +02:00
Daniel Schädler 08dce6ec09 Add empty_prepared_playoff_match 2019-05-11 17:42:37 +02:00
Thor77 7776724781 Save match position 2019-05-11 17:42:37 +02:00
Daniel Schädler b5e4ec7ea3 For stage tournament, first stage has running matches 2019-05-11 17:42:37 +02:00
Daniel Schädler 5b10bd639f Put running playoff matches in a playoff stage (only on first level) 2019-05-11 08:54:23 +02:00
Daniel Schädler ae8575fd5a 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-11 08:54:23 +02:00
Daniel Schädler 08b3199d18 Manually create the list of stages to assign stage levels correctly 2019-05-11 08:54:23 +02:00
Daniel Schädler bf03437fde Move group_stage tournament into stage tournament 2019-05-11 08:54:23 +02:00
Daniel Schädler 802ff678cf Add tests for match winner method 2019-05-11 08:54:23 +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