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

Fix team points per OHSAA

This commit is contained in:
2020-01-07 07:25:49 -05:00
parent 981ba3d530
commit 6acea87822
7 changed files with 93 additions and 23 deletions

View File

@@ -72,12 +72,12 @@ class EightPoolMatchGenerationTest < ActionDispatch::IntegrationTest
wrestler = get_wrestler_by_name("Test1")
match.w1 = wrestler.id
match.save
assert wrestler.reload.placement_points == 3
assert wrestler.reload.placement_points == 1
match2 = @tournament.matches.select{|m| m.bracket_position == "Semis"}.first
match2.w1 = wrestler.id
match2.save
assert wrestler.reload.placement_points == 9
assert wrestler.reload.placement_points == 7
end
test "Run through all matches works" do

View File

@@ -72,12 +72,12 @@ class FourPoolToQuarterGenerationTest < ActionDispatch::IntegrationTest
wrestler = get_wrestler_by_name("Test1")
match.w1 = wrestler.id
match.save
assert wrestler.reload.placement_points == 3
assert wrestler.reload.placement_points == 1
match2 = @tournament.matches.select{|m| m.bracket_position == "Semis"}.first
match2.w1 = wrestler.id
match2.save
assert wrestler.reload.placement_points == 9
assert wrestler.reload.placement_points == 7
end
test "Run through all matches works" do

View File

@@ -66,12 +66,12 @@ class FourPoolToSemiGenerationTest < ActionDispatch::IntegrationTest
wrestler = get_wrestler_by_name("Test1")
match.w1 = wrestler.id
match.save
assert wrestler.reload.placement_points == 3
assert wrestler.reload.placement_points == 1
match2 = @tournament.matches.select{|m| m.bracket_position == "Semis"}.first
match2.w1 = wrestler.id
match2.save
assert wrestler.reload.placement_points == 9
assert wrestler.reload.placement_points == 7
end
test "Run through all matches works" do

View File

@@ -51,7 +51,7 @@ class TwoPoolToSemiGenerationTest < ActionDispatch::IntegrationTest
wrestler = get_wrestler_by_name("Test1")
match.w1 = wrestler.id
match.save
assert wrestler.reload.placement_points == 9
assert wrestler.reload.placement_points == 4
end
test "Run through all matches works" do