Commit Graph

8 Commits

Author SHA1 Message Date
Daniel Schädler c9c47fa0e5 Test returning unprocessable entity when match_score update fails 2019-06-10 18:49:07 +02:00
Daniel Schädler 40cfa479f0 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-10 18:49:07 +02:00
Daniel Schädler b89e2c58d4 Dry out code with shared_examples 2019-06-10 18:49:07 +02:00
Daniel Schädler 9e66bfa1d7 Overwrite owner of tournament manually 2019-06-10 18:49:07 +02:00
Daniel Schädler e567d12ca2 Test if match_score point change triggers group score calculation 2019-06-10 18:49:07 +02:00
Thor77 667d6a028c
Test controller params as they're documented 2019-04-07 13:40:34 +02:00
Thor77 dcb8e6b216 Adapt controller specs to new api schema 2018-12-11 17:14:43 +01:00
Daniel Schädler dd2f66f49d Score is now MatchScore & Score Attribute is Points Attribute 2018-11-30 15:10:33 +01:00