1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-03 21:33:48 +00:00

Random seeding now works

This commit is contained in:
2015-12-30 16:21:56 +00:00
parent 6ed2bdf547
commit 74577eb9ec
11 changed files with 131 additions and 21 deletions

View File

@@ -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