1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-04 22:03:49 +00:00

Removed fixtures from integration tests

This commit is contained in:
2019-04-19 21:49:34 -04:00
parent 39602adc82
commit 278a3f3dd0
7 changed files with 288 additions and 577 deletions

View File

@@ -54,6 +54,9 @@ class EightPoolMatchGenerationTest < ActionDispatch::IntegrationTest
thirdFourth = @tournament.matches.reload.select{|m| m.bracket_position == "3/4"}.first
seventhEighth = @tournament.matches.reload.select{|m| m.bracket_position == "7/8"}.first
consoSemis = @tournament.matches.reload.select{|m| m.bracket_position == "Conso Semis"}
semis = @tournament.matches.reload.select{|m| m.bracket_position == "Semis"}
assert thirdFourth.loser1_name == "Loser of #{semis.select{|m| m.bracket_position_number == 1}.first.bout_number}"
assert thirdFourth.loser2_name == "Loser of #{semis.select{|m| m.bracket_position_number == 2}.first.bout_number}"
assert seventhEighth.loser1_name == "Loser of #{consoSemis.select{|m| m.bracket_position_number == 1}.first.bout_number}"
assert seventhEighth.loser2_name == "Loser of #{consoSemis.select{|m| m.bracket_position_number == 2}.first.bout_number}"
end