Commit Graph

28 Commits

Author SHA1 Message Date
Daniel Schädler aa1bb63038 Move shared example test to bottom of context
This will make jonas sleep well at nigh, so it is worth it.
2019-06-04 23:58:29 +02:00
Daniel Schädler 9c029009fb
fixup to test update group scores method 3d8abe449a
Co-Authored-By: Thor77 <thor77@thor77.org>
2019-06-04 23:54:19 +02:00
Daniel Schädler 3d8abe449a Test update_group_scores method 2019-06-04 15:09:21 +02:00
Daniel Schädler b1af138ed8 Make Hound woof happily 2019-06-04 15:09:21 +02:00
Daniel Schädler 688e2da706 Rename @groups to @prepared_groups
This is done because @prepared_groups only represents hashes of groups
that still need to be generated rather then actual group objects.
2019-06-04 15:09:21 +02:00
Daniel Schädler 2bc471082e Remove unused Variable @stage 2019-06-04 15:09:21 +02:00
Daniel Schädler 5809a062a6 Add GroupScore objects for every team to the group stage 2019-06-04 15:09:21 +02:00
Daniel Schädler 6f44823bc6 Change match state of match below 2019-05-26 20:15:59 +02:00
Daniel Schädler 8dd1f0b07c Rearrange Test Code 2019-05-26 20:15:59 +02:00
Daniel Schädler 0337b6fad8 Save match_scores after editing them in tests 2019-05-26 20:15:59 +02:00
Daniel Schädler e0ef39cc4b Test populate_match_below method 2019-05-26 20:15:58 +02:00
Thor77 39fc9f1630
Use factories instead of creating models manually 2019-05-16 20:53:05 +02:00
Thor77 bdcfbe934b
Add StatisticsService 2019-05-16 20:53:04 +02:00
Daniel Schädler db1518bdbd Raise exceptions upon error in group_stage_service 2019-05-04 20:34:57 +02:00
Daniel Schädler 88d8367c47 Check the length of the match positions instead of their exact content 2019-05-04 20:34:57 +02:00
Daniel Schädler bbeda07028 Change test / context / describe names 2019-05-04 20:34:57 +02:00
Daniel Schädler 6dba0ec738 Test GroupStageService 2019-05-04 20:34:57 +02:00
Daniel Schädler d3d572ea1b Change return for 0 teams to exception 2019-04-23 14:21:29 +02:00
Daniel Schädler a449e0193a Use match_array instead of eq
This is the proper way to compare arrays
2019-04-23 14:19:36 +02:00
Daniel Schädler a30ff860e9 Return a valid list of matches for 1 team 2019-04-23 14:19:36 +02:00
Daniel Schädler d221928a12 Test generation of playoff stages for 1 2 and 3 teams 2019-04-23 14:19:36 +02:00
Daniel Schädler 8b11f73a58 Add another Test Case 2019-04-23 14:19:36 +02:00
Daniel Schädler 9918b4a71c Improve test readability in logs 2019-04-23 14:19:36 +02:00
Daniel Schädler 6baaebddd9 Add Test for team numbers that are not powers of 2 2019-04-23 14:19:36 +02:00
Daniel Schädler 00bc8c82e3 Correct Expected Test results
(I am bad at quick math)
2019-04-23 14:19:36 +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 26bcc3dc88 Implement Adding Playoffs to a tournament 2018-11-29 11:10:15 +01:00
Daniel Schädler 7f243b06a2 Implement Utils Class 2018-11-29 11:03:44 +01:00