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 |
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 |
Daniel Schädler
|
b36e3c4251
|
Delegate owner of team to tournament again
|
2019-05-22 09:25:07 +02:00 |
Daniel Schädler
|
dcb19461be
|
Add group_stage_only_tournament factory
|
2019-05-22 09:25:07 +02:00 |
Daniel Schädler
|
03d7369a1c
|
Remove link between team.owner and tournament
|
2019-05-22 09:25:07 +02:00 |
Thor77
|
39fc9f1630
|
Use factories instead of creating models manually
|
2019-05-16 20:53:05 +02:00 |
Thor77
|
99bfe6ed70
|
Add StatisticsController
|
2019-05-16 20:53:04 +02:00 |
Thor77
|
3876f57d32
|
Add methods and specs to update a match
|
2019-05-07 18:41:53 +02:00 |
Thor77
|
f93c714e1a
|
Add test for empty team hashes
|
2019-05-04 20:34:57 +02:00 |
Daniel Schädler
|
ae29427e5d
|
Don't run "before" before each test
|
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
|
acfc388da4
|
Implements group stage tournament creation
|
2019-05-04 20:34:57 +02:00 |
Daniel Schädler
|
300f16b4c2
|
Rename create_data to create_playoff_tournament_data
This is done in preparation for the addition of group stage data
within the next few commits
|
2019-05-04 20:34:57 +02:00 |
Thor77
|
6d40d091a4
|
Modify tournament index spec for "type" parameter
|
2019-04-24 22:49:48 +02:00 |
Thor77
|
c4d03b52c3
|
Fix tournament index spec apply wrong auth header
because the user @owner doesn't have any private tournaments, therefore
the spec was pointless
|
2019-04-24 22:49:48 +02:00 |
Thor77
|
09ca262ab1
|
Move index specs into without parameters context
|
2019-04-24 22:49:48 +02:00 |
Thor77
|
a14a5224e5
|
Add spec for tournament-creation with invalid team
|
2019-04-16 13:24:58 +02:00 |
Thor77
|
2b2fccf076
|
Add tests checking generated stage
|
2019-04-09 10:47:17 +02:00 |
Thor77
|
cdd6b6737f
|
Add test for non-existing team and names
|
2019-04-08 11:15:24 +02:00 |
Thor77
|
2385650be0
|
Adapt tests to updated tournament controller
|
2019-04-07 19:27:28 +02:00 |
Thor77
|
12c14303f2
|
Validate exact tournament lists instead of sizes
|
2019-04-07 18:46:48 +02:00 |
Thor77
|
667d6a028c
|
Test controller params as they're documented
|
2019-04-07 13:40:34 +02:00 |
Thor77
|
d7a8504b45
|
Replace deprecated Faker::Dog
|
2019-04-03 09:45:56 +02:00 |
Thor77
|
945c499de7
|
Skip spec for tournament creation for now
because we need to find a proper way to implement it in a RESTful way
|
2018-12-11 17:14:43 +01: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 |
Thor77
|
e763f14719
|
Add ScoresController and their specs
|
2018-11-30 14:42:12 +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
|
83c76c456c
|
Add TournamentsControllers specs
|
2018-11-25 22:55:48 +01:00 |
Thor77
|
20288ff7e4
|
Use DeserializeHelpers.deserialize_response
|
2018-11-24 20:34:13 +01:00 |
Thor77
|
0308dc121f
|
Add TeamsController and corresponding specs
|
2018-11-24 19:18:03 +01:00 |
Thor77
|
6c24180715
|
Add MatchesController and specs for it
|
2018-11-21 18:57:16 +01:00 |