mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-05 22:21:26 +00:00
Model validations
This commit is contained in:
@@ -4,4 +4,10 @@ class SchoolTest < ActiveSupport::TestCase
|
||||
test "the truth" do
|
||||
assert true
|
||||
end
|
||||
|
||||
test "School validations" do
|
||||
school = School.new
|
||||
assert_not school.valid?
|
||||
assert_equal [:name], school.errors.keys
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user