Daniel Schädler
|
386155a690
|
Fix last Match not being stopped correctly
|
2019-06-18 14:09:29 +02:00 |
Daniel Schädler
|
5d47ae5426
|
Fix two typos
|
2019-06-05 17:05:58 +02:00 |
Daniel Schädler
|
9c9a856265
|
Test returning unprocessable entity when error occurs in match population
|
2019-06-05 17:05:58 +02:00 |
Daniel Schädler
|
41b8bdce77
|
Test unprocessable entity response on a match that is not ready
Unprocessable entity is returned when you try to start a match that is
not ready yet.
|
2019-06-05 17:05:58 +02:00 |
Daniel Schädler
|
d03ceeffa4
|
Test returning unprocessable entity response
We now test sending a senseless state and also what happens when the
match.update method fails for some reason.
|
2019-06-05 17:05:58 +02:00 |
Daniel Schädler
|
ab33ec157d
|
Split test methods for failed stopping of matches
|
2019-06-05 17:05:58 +02:00 |
Daniel Schädler
|
68535b89fc
|
Prevent matches from being stopped without a winner in playoffs
|
2019-06-05 17:05:58 +02:00 |
Daniel Schädler
|
537cccfa9e
|
Force save match_scores
|
2019-05-26 20:15:59 +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
|
9f92ca7e5b
|
Move stopping of matches test
|
2019-05-26 20:15:59 +02:00 |
Daniel Schädler
|
21c79665e1
|
Check if .winner returns a Team
This is done to prevent Test from succeeding if both
.winner and .teams return nil
|
2019-05-26 20:15:59 +02:00 |
Daniel Schädler
|
74b345dce4
|
Fix factory name for stage tournament
|
2019-05-26 20:15:59 +02:00 |
Daniel Schädler
|
5457d50277
|
Simplify code finding the tournament
Co-Authored-By: Thor77 <thor77@thor77.org>
|
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
|
bc055843d9
|
Test stopping of Matches
|
2019-05-26 20:14:13 +02:00 |
Daniel Schädler
|
280b0c1dec
|
Change status of Match to only represent being finished
The winner will be a attribute of the Match instead of something
that is written in its status.
|
2019-05-26 20:14:13 +02:00 |
Thor77
|
3876f57d32
|
Add methods and specs to update a match
|
2019-05-07 18:41:53 +02:00 |
Thor77
|
dcb8e6b216
|
Adapt controller specs to new api schema
|
2018-12-11 17:14:43 +01: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
|
a75087aa6c
|
Prepare spec_helper for focused tests
|
2018-11-29 11:02:25 +01:00 |
Thor77
|
70cc88920b
|
Remove unused global variables
|
2018-11-25 22:55:49 +01:00 |
Thor77
|
6c24180715
|
Add MatchesController and specs for it
|
2018-11-21 18:57:16 +01:00 |