mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-25 01:14:43 +00:00
Get us back to green on the tests. upcomingMatches doesn't (and shouldn't) change tournament state.
This commit is contained in:
@@ -59,7 +59,7 @@ class PoolbracketMatchupsTest < ActionDispatch::IntegrationTest
|
|||||||
end
|
end
|
||||||
|
|
||||||
def checkForByeInPool(tournament)
|
def checkForByeInPool(tournament)
|
||||||
tournament.upcomingMatches
|
tournament.generateMatchups
|
||||||
matchups = tournament.matches
|
matchups = tournament.matches
|
||||||
tournament.weights.each do |w|
|
tournament.weights.each do |w|
|
||||||
w.wrestlers.each do |wr|
|
w.wrestlers.each do |wr|
|
||||||
@@ -126,11 +126,9 @@ class PoolbracketMatchupsTest < ActionDispatch::IntegrationTest
|
|||||||
|
|
||||||
|
|
||||||
test "test if a wrestler can exceed five matches" do
|
test "test if a wrestler can exceed five matches" do
|
||||||
@count = 5
|
(5...16).each do |count|
|
||||||
until @count > 16 do
|
tourney = createTournament(count)
|
||||||
@tournament2 = createTournament(@count)
|
checkForByeInPool(tourney)
|
||||||
checkForByeInPool(@tournament2)
|
|
||||||
@count = @count + 1
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user