1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-07 14:57:48 +00:00

Fixed bug for deducted points and fastest pin. Also added tests to test against those bugs

This commit is contained in:
2019-04-20 11:57:58 -04:00
parent 22e63d3e92
commit 8a9ea7ff35
3 changed files with 177 additions and 10 deletions

View File

@@ -107,6 +107,13 @@ class ActiveSupport::TestCase
GenerateTournamentMatches.new(@tournament).generate
end
def team_point_adjusts_for_wrestler(wrestler_name,points)
adjust = Teampointadjust.new
adjust.points = points
adjust.wrestler_id = get_wrestler_by_name(wrestler_name)
adjust.save
end
def create_wrestlers_for_weight(weight, school, number_of_wrestlers, naming_start_number)
naming_number = naming_start_number
seed = 1