Commit Graph

205 Commits

Author SHA1 Message Date
Thor77 c0839bb89e Ignore BlockLength for schema, spec and config 2018-11-19 15:25:46 +01:00
Thor77 46b4f27b5e Instruct hound to read .rubocop.yml 2018-11-19 15:19:37 +01:00
Thor77 552566dd2e Validate match has only 2 scores 2018-11-19 14:57:55 +01:00
Thor77 1cd4835651 Add valid factories for all models 2018-11-19 14:50:41 +01:00
Thor77 0bcd3a88a9 Validate presence of name 2018-11-19 14:45:01 +01:00
Thor77 6e1af687ad Add default for scores.score 2018-11-19 14:41:30 +01:00
Thor77 65abada8b2
Modify model associations to map to new schema 2018-11-19 11:47:14 +01:00
Thor77 c573fd9edd
Fix team spec expecting group_score relation 2018-11-19 11:47:14 +01:00
Thor77 03f362a7fe
Add Score and Stage model 2018-11-19 11:47:14 +01:00
Thor77 7252c720ae
Remove unique index from users.provider 2018-11-19 11:47:13 +01:00
Thor77 21103588a2
Remove unused Group- and PlayoffStage models
because they are now both represented by the Stage model
2018-11-19 11:47:13 +01:00
Thor77 def5de2a7e
Add factories for groups, matches, scores & stages 2018-11-19 11:47:13 +01:00
Thor77 1ec2fa6cf5
Add model test for group,match,score,stage,user 2018-11-19 11:47:13 +01:00
Thor77 b09f4eceb2
Add tests for valid factory to all model tests 2018-11-19 11:47:13 +01:00
Thor77 1a24dd3057
Add association tests for new schema 2018-11-19 11:47:13 +01:00
Thor77 b424b64422
Rewrite database schema 2018-11-19 11:47:13 +01:00
Thor77 b72bc69b81
Add spec for GroupScore model 2018-11-19 11:47:13 +01:00
Thor77 556f326acd
Alias Tournament.user to Tournament.owner 2018-11-19 11:47:12 +01:00
Thor77 b742b3ed67
Move group scores into separate table 2018-11-19 11:47:12 +01:00
Thor77 579412ab89
Add teams and group scores factory 2018-11-19 11:47:12 +01:00
Thor77 ca0013b9b2
Use expect instead of assert syntax 2018-11-19 11:47:12 +01:00
Thor77 07eb561f77
Implement Tournament-Team relation 2018-11-19 11:47:12 +01:00
Thor77 3043c9f0d7
Add User factory 2018-11-19 11:47:12 +01:00
Thor77 ff63380c9c
Add Tournament model spec and factory 2018-11-19 11:47:12 +01:00
Thor77 1d463b55c3
Fix cascade symbol invalid 2018-11-19 11:47:12 +01:00
Thor77 20fafab009
Generate tournament code if not given 2018-11-19 11:47:11 +01:00
Thor77 244da7a2e6
Add on_delete cascade attr to user-tournament fk 2018-11-19 11:47:11 +01:00
Thor77 d89c24a645
Add relation between Tournament and User 2018-11-19 11:47:11 +01:00
Thor77 683423b06a
Add unique index to tournament code 2018-11-19 11:47:11 +01:00
Thor77 7e16384db3
Add Travis and Coveralls badge 2018-11-19 11:46:03 +01:00
Thor77 94d2c4291a
Add coveralls coverage reporting 2018-11-19 11:38:56 +01:00
Thor77 7ac84c2f0f
Run migrate and spec via bundler exec 2018-11-19 11:22:36 +01:00
Thor77 0e0cc1926f
Add .travis.yml 2018-11-19 11:17:18 +01:00
Thor77 8481a0b19b
Fail builds on hound violations 2018-11-19 11:07:15 +01:00
Thor77 23072565dd
Update dependencies 2018-11-15 22:03:28 +01:00
Thor77 11f29750b6 Limit shoulda to shoulda-matchers
because contexts are already provided by RSpec
2018-11-13 19:16:19 +01:00
Thor77 ed85fd1c92 Remove test/ (superseeded by specs) 2018-11-13 16:57:01 +01:00
Thor77 bcb4bb7ccb Initialize RSpec setup
including shoulda, Faker and FactoryBot
2018-11-13 16:56:16 +01:00
Daniel Schädler 9c65b98a8b
Merge pull request #1 from turniere/ticket/TURNIERE-79
Allow access from all origins
2018-11-13 16:14:29 +01:00
Thor77 b729b37e07 Allow access from all origins 2018-11-13 16:09:23 +01:00
Thor77 55df8c92f2 Add running instructions 2018-11-13 14:15:59 +01:00
Daniel Schädler a13b8e0c72 Change neededGames to needed_games 2018-11-12 16:45:51 +01:00
Daniel Schädler c2814a0faf Add rubocop & solargraph as development dependency 2018-11-12 16:42:38 +01:00
Thor77 fca3cefb59 Add installation and diagram generation instructions 2018-11-12 14:05:56 +01:00
Thor77 6908472def Add controller and model diagrams via railroady 2018-11-12 13:11:25 +01:00
Thor77 c9421e6d42
Add Tournament model 2018-11-11 21:31:47 +01:00
Thor77 821c40c35c
Merge initial schema migrations 2018-11-11 19:57:59 +01:00
Thor77 5774b2463a Format imported code 2018-11-11 19:39:13 +01:00
Thor77 eb88f76fb8 Remove IDEA files 2018-11-11 19:39:03 +01:00
Daniel Schädler d5d61ec0a2 Add some Models 2018-11-11 18:52:15 +01:00