1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-07 06:54:16 +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

@@ -34,7 +34,11 @@ class CalculateWrestlerTeamScore
def poolPoints
if @tournament.tournament_type == "Pool to bracket"
(@wrestler.poolWins.size * 2)
if @wrestler.poolWins.size >= 1 and @wrestler.hasAPoolBye == true
((@wrestler.poolWins.size * 2) + 2)
else
(@wrestler.poolWins.size * 2)
end
else
0
end