mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-25 01:14:43 +00:00
Upgraded to rails 8.0.2
This commit is contained in:
22
test/fixtures/tournament_job_statuses.yml
vendored
22
test/fixtures/tournament_job_statuses.yml
vendored
@@ -2,26 +2,4 @@
|
||||
|
||||
# This model requires tournament, job_name, and status fields
|
||||
|
||||
queued_job:
|
||||
tournament: one
|
||||
job_name: "Test Queued Job"
|
||||
status: "Queued"
|
||||
details: "Test job details"
|
||||
|
||||
running_job:
|
||||
tournament: one
|
||||
job_name: "Test Running Job"
|
||||
status: "Running"
|
||||
details: "Test running job details"
|
||||
|
||||
errored_job:
|
||||
tournament: one
|
||||
job_name: "Test Errored Job"
|
||||
status: "Errored"
|
||||
details: "Test error message"
|
||||
|
||||
another_tournament_job:
|
||||
tournament: two
|
||||
job_name: "Another Tournament Job"
|
||||
status: "Running"
|
||||
details: "Different tournament test"
|
||||
|
||||
@@ -8,7 +8,7 @@ class MatTest < ActiveSupport::TestCase
|
||||
test "Mat validations" do
|
||||
mat = Mat.new
|
||||
assert_not mat.valid?
|
||||
assert_equal [:name], mat.errors.attribute_names
|
||||
assert_equal [:tournament, :name], mat.errors.attribute_names
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
@@ -8,7 +8,7 @@ class SchoolTest < ActiveSupport::TestCase
|
||||
test "School validations" do
|
||||
school = School.new
|
||||
assert_not school.valid?
|
||||
assert_equal [:name], school.errors.attribute_names
|
||||
assert_equal [:tournament, :name], school.errors.attribute_names
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
@@ -8,7 +8,7 @@ class WeightTest < ActiveSupport::TestCase
|
||||
test "Weight validations" do
|
||||
weight = Weight.new
|
||||
assert_not weight.valid?
|
||||
assert_equal [:max], weight.errors.attribute_names
|
||||
assert_equal [:tournament, :max], weight.errors.attribute_names
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
@@ -8,7 +8,7 @@ class WrestlerTest < ActiveSupport::TestCase
|
||||
test "Wrestler validations" do
|
||||
wrestler = Wrestler.new
|
||||
assert_not wrestler.valid?
|
||||
assert_equal [:name, :weight_id, :school_id], wrestler.errors.attribute_names
|
||||
assert_equal [:school, :weight, :name, :weight_id, :school_id], wrestler.errors.attribute_names
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user