mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-25 01:14:43 +00:00
Fixed bug in test for quickest pin then fixed bug in quickest pin tie breaker
This commit is contained in:
@@ -177,7 +177,7 @@ class Wrestler < ActiveRecord::Base
|
||||
end
|
||||
|
||||
def fastestPin
|
||||
pinWins.sort_by{|m| m.pinTime}.reverse.first
|
||||
pinWins.sort_by{|m| m.pinTime}.first
|
||||
end
|
||||
|
||||
def seasonWinPercentage
|
||||
|
||||
@@ -131,10 +131,10 @@ class PoolAdvancementTest < ActionDispatch::IntegrationTest
|
||||
def nineManBracketPoolTwoGuyThreeQuickestPin
|
||||
matches = @matches.select{|m| m.weight_id == 3 && m.bracket_position == "Pool"}
|
||||
endMatchWithQuickPin(1004,"Guy9",matches)
|
||||
endMatch(1005,"Guy7",matches)
|
||||
endMatchWithPin(1005,"Guy7",matches)
|
||||
endMatchWithQuickPin(2004,"Guy3",matches)
|
||||
endMatch(2005,"Guy9",matches)
|
||||
endMatch(3004,"Guy7",matches)
|
||||
endMatchWithPin(2005,"Guy9",matches)
|
||||
endMatchWithPin(3004,"Guy7",matches)
|
||||
endMatchWithQuickestPin(3005,"Guy3",matches)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user