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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user