Daniel Schädler
1b26ff56fe
Add group_stage_only_tournament factory
2019-05-12 19:09:50 +02:00
Daniel Schädler
787ed810d7
Remove link between team.owner and tournament
2019-05-12 19:09:50 +02:00
Daniel Schädler
dded01ebee
Reduce standart amount of teams within a tournament to 8
2019-05-12 19:09:50 +02:00
Daniel Schädler
ef3413b8ed
Add dummy_stage_tournament
2019-05-12 19:09:50 +02:00
Daniel Schädler
d1338eaadb
Add position to all matches
2019-05-12 19:09:50 +02:00
Daniel Schädler
533929421b
Makes match_type configurable instead of only setting its state
2019-05-12 19:09:50 +02:00
Daniel Schädler
d9e53a56fb
Add empty_prepared_playoff_match
2019-05-12 19:09:50 +02:00
Thor77
89fe7073de
Save match position
2019-05-12 19:09:50 +02:00
Daniel Schädler
0c9943b2a3
For stage tournament, first stage has running matches
2019-05-12 19:09:50 +02:00
Daniel Schädler
7e4b800748
Put running playoff matches in a playoff stage (only on first level)
2019-05-12 19:09:50 +02:00
Daniel Schädler
c0ac3a5f54
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-12 19:09:50 +02:00
Daniel Schädler
2601f0ae31
Manually create the list of stages to assign stage levels correctly
2019-05-12 19:09:50 +02:00
Daniel Schädler
8785c2075d
Move group_stage tournament into stage tournament
2019-05-12 19:09:50 +02:00
Daniel Schädler
46fbdd667e
Add tests for match winner method
2019-05-12 19:09:50 +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