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

Renamed boutNumber to bout_number to make the field consistent with the rest of the domain and database schema.

This commit is contained in:
R.J. Osborne
2015-05-17 08:13:52 -04:00
parent f54937e9fe
commit f6dd4e8625
11 changed files with 45 additions and 40 deletions

View File

@@ -70,14 +70,14 @@ class PoolbracketMatchupsTest < ActionDispatch::IntegrationTest
refute_nil @tournament
end
test "tests boutNumber matches round" do
@matchup_to_test = @genMatchups.select{|m| m.boutNumber == 4000}.first
test "tests bout_number matches round" do
@matchup_to_test = @genMatchups.select{|m| m.bout_number == 4000}.first
assert_equal 4, @matchup_to_test.round
end
test "tests boutNumbers are generated with smallest weight first regardless of id" do
test "tests bout_numbers are generated with smallest weight first regardless of id" do
@weight = @tournament.weights.map.sort_by{|x|[x.max]}.first
@matchup = @genMatchups.select{|m| m.boutNumber == 1000}.first
@matchup = @genMatchups.select{|m| m.bout_number == 1000}.first
assert_equal @weight.max, @matchup.weight_max
end