mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-25 01:14:43 +00:00
Changed database column for wrestlers seed to bracket_line
This commit is contained in:
@@ -260,7 +260,7 @@ class PoolbracketMatchupsTest < ActionDispatch::IntegrationTest
|
||||
|
||||
test "Random seeding works" do
|
||||
weight = Weight.find(6)
|
||||
wrestlersWithoutSeed = weight.wrestlers.select{|w| w.seed == nil }.size
|
||||
wrestlersWithoutSeed = weight.wrestlers.select{|w| w.bracket_line == nil }.size
|
||||
|
||||
assert_equal 0, wrestlersWithoutSeed
|
||||
end
|
||||
|
||||
@@ -42,7 +42,7 @@ class SingleTestTest < ActionDispatch::IntegrationTest
|
||||
# puts " school_id: #{w.school_id}"
|
||||
# puts " weight_id: #{w.weight_id}"
|
||||
# puts " original_seed: #{w.original_seed}"
|
||||
# puts " seed: #{w.seed}"
|
||||
# puts " bracket_line: #{w.bracket_line}"
|
||||
# puts " season_loss: #{w.season_loss}"
|
||||
# puts " season_win: #{w.season_win}"
|
||||
# puts " criteria: #{w.criteria}"
|
||||
|
||||
@@ -19,10 +19,10 @@ class SwapWrestlersTest < ActionDispatch::IntegrationTest
|
||||
|
||||
assert_not_empty wrestler1.matchAgainst(wrestler3)
|
||||
assert_equal 2, wrestler1.pool
|
||||
assert_equal 2, wrestler1.seed
|
||||
assert_equal 2, wrestler1.bracket_line
|
||||
|
||||
assert_not_empty wrestler2.matchAgainst(wrestler4)
|
||||
assert_equal 1, wrestler2.pool
|
||||
assert_equal 1, wrestler2.seed
|
||||
assert_equal 1, wrestler2.bracket_line
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user