mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-01 12:15:25 +00:00
Matchups_array completely removed. I do not know why has_many matches
does not work in tournaments. The solution was to add a matches method.
This commit is contained in:
3
test/fixtures/tournaments.yml
vendored
3
test/fixtures/tournaments.yml
vendored
@@ -6,8 +6,7 @@ one:
|
||||
address: Some Place
|
||||
director: Jacob Cody Wimer
|
||||
director_email: jacob.wimer@gmail.com
|
||||
matchups_array:
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -42,7 +42,8 @@ class PoolbracketMatchupsTest < ActionDispatch::IntegrationTest
|
||||
end
|
||||
|
||||
def checkForByeInPool(tournament)
|
||||
@matchups = tournament.generateMatchups
|
||||
tournament.upcomingMatches
|
||||
@matchups = tournament.matches
|
||||
tournament.weights.each do |w|
|
||||
w.wrestlers.each do |wr|
|
||||
@round = 1
|
||||
|
||||
Reference in New Issue
Block a user