1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-15 20:46:57 +00:00

Refactored names of methods and some db column

This commit is contained in:
2018-11-13 14:14:48 +00:00
parent 93be525832
commit d67a8f2b42
44 changed files with 350 additions and 350 deletions

View File

@@ -11,17 +11,17 @@ class SwapWrestlersTest < ActionDispatch::IntegrationTest
wrestler2 = wrestlers(:swap_wrestlers_wrestler_2)
wrestler3 = wrestlers(:swap_wrestlers_wrestler_3)
wrestler4 = wrestlers(:swap_wrestlers_wrestler_4)
SwapWrestlers.new.swapWrestlers(wrestler1.id,wrestler2.id)
SwapWrestlers.new.swap_wrestlers_bracket_lines(wrestler1.id,wrestler2.id)
#Variable needs refreshed otherwise asserts fail
wrestler1 = Wrestler.find(54)
wrestler2 = Wrestler.find(55)
assert_not_empty wrestler1.matchAgainst(wrestler3)
assert_not_empty wrestler1.match_against(wrestler3)
assert_equal 2, wrestler1.pool
assert_equal 2, wrestler1.bracket_line
assert_not_empty wrestler2.matchAgainst(wrestler4)
assert_not_empty wrestler2.match_against(wrestler4)
assert_equal 1, wrestler2.pool
assert_equal 1, wrestler2.bracket_line
end