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:
@@ -81,4 +81,12 @@ class EightPoolMatchGenerationTest < ActionDispatch::IntegrationTest
|
||||
match2.save
|
||||
assert wrestler.reload.placement_points == 9
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user