mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-01 12:15:25 +00:00
Fixed tests to include mats
This commit is contained in:
@@ -7,10 +7,11 @@ class PoolbracketMatchupsTest < ActionDispatch::IntegrationTest
|
||||
end
|
||||
|
||||
def createTournament(numberOfWrestlers)
|
||||
@id = 6000 + numberOfWrestlers
|
||||
@id = 600 + numberOfWrestlers
|
||||
tournament = create_tournament
|
||||
create_school
|
||||
create_weight
|
||||
create_mat
|
||||
create_wrestlers(numberOfWrestlers)
|
||||
tournament
|
||||
end
|
||||
@@ -35,6 +36,14 @@ class PoolbracketMatchupsTest < ActionDispatch::IntegrationTest
|
||||
tournament_id: @id
|
||||
).save!
|
||||
end
|
||||
|
||||
def create_mat
|
||||
Mat.new(
|
||||
id: @id,
|
||||
name: "Mat 1",
|
||||
tournament_id: @id
|
||||
).save!
|
||||
end
|
||||
|
||||
def create_weight
|
||||
Weight.new(
|
||||
|
||||
Reference in New Issue
Block a user