1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-25 01:14:43 +00:00

A BYE gives 2 points in a pool of you win one pool match. Now have two tests failing with regard to tie breakers. Most likely poorley written tests

This commit is contained in:
2017-01-18 14:55:11 +00:00
parent aeb6011340
commit e77b555069
3 changed files with 20 additions and 8 deletions

View File

@@ -124,6 +124,14 @@ class Wrestler < ActiveRecord::Base
pool_matches = allMatches.select{|m| m.bracket_position == "Pool"}
pool_matches.select{|m| m.poolNumber == self.generatePoolNumber}
end
def hasAPoolBye
if weight.poolRounds(allMatches) > poolMatches.size
return true
else
return false
end
end
def championshipAdvancementWins
matchesWon.select{|m| m.bracket_position == "Quarter" or m.bracket_position == "Semis"}