mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-02 21:24:25 +00:00
Random seeding now works
This commit is contained in:
@@ -536,15 +536,12 @@ class PoolAdvancementTest < ActionDispatch::IntegrationTest
|
||||
assert_equal 12, wrestler.placementPoints
|
||||
end
|
||||
|
||||
test "advancement points fourPoolsToSemi Semis" do
|
||||
test "advancement points fourPoolsToSemi Semis and Conso Semis" do
|
||||
sixteenManToSemi
|
||||
wrestler = Wrestler.where("name = ?", "Guy22").first
|
||||
|
||||
assert_equal 9, wrestler.placementPoints
|
||||
end
|
||||
|
||||
test "advancement points fourPoolsToSemi Conso Semis" do
|
||||
sixteenManToSemi
|
||||
|
||||
wrestler = Wrestler.where("name = ?", "Guy29").first
|
||||
|
||||
assert_equal 3, wrestler.placementPoints
|
||||
|
||||
@@ -256,5 +256,12 @@ class PoolbracketMatchupsTest < ActionDispatch::IntegrationTest
|
||||
assert_equal lastRound, m.round
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
test "Random seeding works" do
|
||||
weight = Weight.find(6)
|
||||
wrestlersWithoutSeed = weight.wrestlers.select{|w| w.seed == nil }.size
|
||||
|
||||
assert_equal 0, wrestlersWithoutSeed
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user