mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-10 23:53:06 +00:00
Created integration test for poolbracket matchups
This commit is contained in:
@@ -31,10 +31,10 @@ class Tournament < ActiveRecord::Base
|
||||
def generateMatchups
|
||||
@matches = []
|
||||
self.weights.map.sort_by{|x|[x.max]}.each do |weight|
|
||||
@upcomingMatches = weight.generateMatchups(@matches)
|
||||
@matches = weight.generateMatchups(@matches)
|
||||
end
|
||||
@upcomingMatches = assignBouts(@upcomingMatches)
|
||||
return @upcomingMatches
|
||||
@matches = assignBouts(@matches)
|
||||
return @matches
|
||||
end
|
||||
|
||||
def assignBouts(matches)
|
||||
|
||||
Reference in New Issue
Block a user