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

Test to make sure eight pools to quarter run through all matches successfully

This commit is contained in:
2019-01-19 15:20:54 +00:00
parent b8a4763eb5
commit 30dc645375

View File

@@ -81,4 +81,12 @@ class EightPoolMatchGenerationTest < ActionDispatch::IntegrationTest
match2.save match2.save
assert wrestler.reload.placement_points == 9 assert wrestler.reload.placement_points == 9
end end
test "Run through all matches works" do
GenerateTournamentMatches.new(@tournament).generate
@tournament.matches.sort{ |match| match.round }.each do |match|
match.winner_id = match.w1
match.save
end
end
end end