d065e31818
Loser name generation was not saving. Fixed that and added a test.
2015-05-28 12:24:46 +00:00
RJ Osborne
062396da0a
A Tournament can now generate its own matches.
...
This was again extracted as a module. Modules get more powerful as they get more generic. This is far from generic.
2015-05-27 23:57:37 -04:00
RJ Osborne
902685ea51
Get us back to green on the tests. upcomingMatches doesn't (and shouldn't) change tournament state.
2015-05-27 22:14:19 -04:00
RJ Osborne
c041286943
rough cut of getting rid of the matches collection being passed around
...
Associated Weight and Match-- the FK already existed in the domain
Reduced argument counts on assignLoserNames and assignBouts; trying to pass a Tournament around more
This was a tough nut to crack. Looking back, I tried to eat too much of the horse at once on this refactor.
2015-05-26 19:26:15 -04:00
RJ Osborne
091b7c4181
Cut the runtime by queueing the changes in memory and deferring database writes
...
Made some unspecified behavior explicit
2015-05-26 19:26:15 -04:00
RJ Osborne
98879c16b9
Make sure the max weight is defined during tests
2015-05-26 19:26:15 -04:00
R.J. Osborne
d0926420b2
extracting methods from test setup
2015-05-19 23:25:49 -04:00
R.J. Osborne
0e954c1789
Simplify construction a bit on some methods
2015-05-19 22:36:30 -04:00
R.J. Osborne
f6dd4e8625
Renamed boutNumber to bout_number to make the field consistent with the rest of the domain and database schema.
2015-05-17 08:13:52 -04:00
d68e4bc54f
got tests working and showed mats table if not logged in
2015-05-05 19:10:17 +00:00
37470d9602
Moved match generation to a class and added tournament_type to tournaments.
2015-04-27 13:54:57 -04:00
9c5c12c413
Matchups_array completely removed. I do not know why has_many matches
...
does not work in tournaments. The solution was to add a matches
method.
2015-04-27 09:50:41 -04:00
dd44efa869
Got stuff working with matches being saved individually.
2015-04-26 15:49:13 -04:00
7146c401cf
Test 5 match rule for bracket size 5-16
2015-03-27 19:07:49 +00:00
86faf8b2a4
Tested serialization in poolbracket integration test
2015-03-27 13:07:32 +00:00
4b6b20c912
Created integration test for poolbracket matchups
2015-03-27 12:52:35 +00:00
819d735480
Cleaned scaffold tests and set up fixtures needed for now.
2015-03-26 16:55:33 +00:00
Jacob Cody Wimer
c5a7bc3815
A ton of stuff was done to finalize the app for use
2014-01-25 05:28:42 -05:00
Jacob Cody Wimer
7f8718af35
Added matches scaffold and ascended views of weights and schools
2014-01-24 15:16:33 -05:00
Jacob Cody Wimer
44511e8600
Entered devise secret key
2014-01-22 09:02:12 -05:00
Jacob Cody Wimer
e27c29d313
Fixed Layouts
2014-01-03 11:03:08 -05:00
Jacob Cody Wimer
24d9deee8b
Added basic scaffolds for schools wrestlers and weights
2013-12-31 11:23:43 -05:00
Jacob Cody Wimer
5b6a127549
Added styling
2013-12-26 14:39:20 -05:00
Jacob Cody Wimer
6a38c8388b
initial commit
2013-12-23 11:04:30 -05:00