Daniel Schädler
060f3d0422
Hopefully 🤞 fix flaky test
2025-03-16 13:44:37 +01:00
Daniel Schädler
cccb8cc806
Mock groupstageservice when changing playoff params
2025-03-16 12:41:28 +01:00
Daniel Schädler
4d62f6777a
Adjust tests to match new version of advancing teams
2025-03-14 13:32:15 +01:00
Daniel Schädler
34814a837a
Merge remote-tracking branch 'origin/master' into annotate_advancing_teams
2025-03-14 13:27:03 +01:00
Daniel Schädler
f71c7ec57f
Merge branch 'timer' into 'master'
...
Timer
See merge request turniere/turniere-backend!30
2025-03-14 12:00:29 +00:00
Daniel Schädler
9f1807ab4b
Test timer_end is in show tournament
2025-03-14 12:47:06 +01:00
Daniel Schädler
d1cbe8a354
Fix tests
2025-03-13 12:52:12 +01:00
Daniel Schädler
41fbf654df
Add todo
2025-03-13 12:41:48 +01:00
Daniel Schädler
4d1e2c5164
Add option to also pass seconds to timer_end
2025-03-10 12:37:19 +01:00
Daniel Schädler
bdcc6e1182
Fix tests
2025-03-10 11:51:36 +01:00
Daniel Schädler
4449314cf6
Improve "normal" controller tests
2025-03-09 21:07:36 +01:00
Daniel Schädler
79bafec693
Add advancing teams into tournaments show endpoint
2025-03-09 21:05:41 +01:00
Tobias Huber
3c1168212e
add timer_end to tournaments model
2025-03-08 17:08:48 +01:00
Daniel Schädler
e448f9ccc3
Remove specific bet specs
2022-06-25 17:34:43 +02:00
Daniel Schädler
c3af6f9232
Rubocop -A
2021-08-15 14:31:50 +02:00
Thor77
bb4a950138
Fix warning about content/media type for Rails 6
2020-06-05 20:41:33 +02:00
Daniel Schädler
b8f8ffb411
More space for hound to be happy with
2019-10-26 01:35:46 +02:00
Daniel Schädler
b37f510534
Unnecessary Variables
2019-10-26 01:35:00 +02:00
Daniel Schädler
400a396f00
Test match index controller with filter
2019-10-26 01:23:15 +02:00
Thor77
d317585168
Add "simple" parameter to tournament show
2019-10-25 23:17:08 +02:00
Daniel Schädler
945ab4981a
Use let more effectively
2019-06-18 22:35:17 +02:00
Daniel Schädler
fa9f47903b
Test trying to change the state to something other than :finished
2019-06-18 22:22:10 +02:00
Daniel Schädler
90d97962a3
Test trying to finish a group stage with unfinished matches
2019-06-18 22:22:10 +02:00
Daniel Schädler
fd8ff20ce8
Test for correct error on finishing already finished stages
2019-06-18 22:22:10 +02:00
Daniel Schädler
b28561043e
Implement stages controller (GET UPDATE)
2019-06-18 22:22:10 +02:00
Daniel Schädler
386155a690
Fix last Match not being stopped correctly
2019-06-18 14:09:29 +02:00
Thor77
3109308817
Fix teams not associated with created tournament
...
when choosing a group stage
2019-06-18 13:29:31 +02:00
Thor77
ba758c73ff
Fix mock using throw instead of raise
2019-06-17 13:48:50 +02:00
Thor77
76e301e920
Add BetsController
2019-06-17 13:48:49 +02:00
Daniel Schädler
a74030a7ef
Implement GroupsController
2019-06-16 13:22:15 +02:00
Daniel Schädler
63db00b9ff
Actually test if correct field gets set in error response
2019-06-13 13:28:34 +02:00
Daniel Schädler
c8f69ccb16
Dry out tests for unacceptable playoff_teams_amount
2019-06-13 13:21:24 +02:00
Daniel Schädler
3e04584e9f
Test changing group_stage transition relevant parameters
2019-06-13 13:21:24 +02:00
Daniel Schädler
4d5d7bc812
Only allow positive powers of two for playoff_teams_amount
2019-06-13 13:21:24 +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
bd2af09339
Add field to tournament containing playoff_teams_amount
...
This field represents how many teams advance into playoff stage after
the group stage has ended.
2019-06-05 16:46:06 +02:00
Daniel Schädler
15e344fa2e
Test returning unprocessable entity when match_score update fails
2019-06-05 10:13:26 +02:00
Daniel Schädler
ceea95c3d3
Move scope of tournament creation in match_score controller test
...
This fixes the problem we had with the update of the match score
returning :forbidden because the @owner variable was not set properly.
Also names of the tests should now be easier to read.
2019-06-05 09:49:21 +02:00
Daniel Schädler
60f12430af
Dry out code with shared_examples
2019-06-05 09:49:21 +02:00
Daniel Schädler
b51513661f
Overwrite owner of tournament manually
2019-06-05 09:49:21 +02:00
Daniel Schädler
d9c901615e
Test if match_score point change triggers group score calculation
2019-06-05 09:49:21 +02:00
Daniel Schädler
f97c8e501c
Remove unnecessary :group_stage_only tournament
2019-06-05 09:49:21 +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