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