mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-09 07:39:06 +00:00
Fixed tests to include mats
This commit is contained in:
3
test/fixtures/mats.yml
vendored
3
test/fixtures/mats.yml
vendored
@@ -7,3 +7,6 @@
|
|||||||
# two:
|
# two:
|
||||||
# name: MyString
|
# name: MyString
|
||||||
# tournament_id: 1
|
# tournament_id: 1
|
||||||
|
one:
|
||||||
|
name: Mat1
|
||||||
|
tournament_id: 1
|
||||||
@@ -7,10 +7,11 @@ class PoolbracketMatchupsTest < ActionDispatch::IntegrationTest
|
|||||||
end
|
end
|
||||||
|
|
||||||
def createTournament(numberOfWrestlers)
|
def createTournament(numberOfWrestlers)
|
||||||
@id = 6000 + numberOfWrestlers
|
@id = 600 + numberOfWrestlers
|
||||||
tournament = create_tournament
|
tournament = create_tournament
|
||||||
create_school
|
create_school
|
||||||
create_weight
|
create_weight
|
||||||
|
create_mat
|
||||||
create_wrestlers(numberOfWrestlers)
|
create_wrestlers(numberOfWrestlers)
|
||||||
tournament
|
tournament
|
||||||
end
|
end
|
||||||
@@ -36,6 +37,14 @@ class PoolbracketMatchupsTest < ActionDispatch::IntegrationTest
|
|||||||
).save!
|
).save!
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def create_mat
|
||||||
|
Mat.new(
|
||||||
|
id: @id,
|
||||||
|
name: "Mat 1",
|
||||||
|
tournament_id: @id
|
||||||
|
).save!
|
||||||
|
end
|
||||||
|
|
||||||
def create_weight
|
def create_weight
|
||||||
Weight.new(
|
Weight.new(
|
||||||
id: @id,
|
id: @id,
|
||||||
|
|||||||
Reference in New Issue
Block a user