1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-03-25 01:14:43 +00:00

config.load_defaults is now 7.1 and I had to add optional belongs to to a couple models as a deprecation from the 4.2 to 5.0 upgrade

This commit is contained in:
2024-03-19 08:36:33 -04:00
parent b108545034
commit 6cb523e350
17 changed files with 23 additions and 295 deletions

View File

@@ -8,6 +8,6 @@ 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