mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-25 01:14:43 +00:00
Model validations
This commit is contained in:
@@ -4,4 +4,10 @@ class MatTest < ActiveSupport::TestCase
|
||||
test "the truth" do
|
||||
assert true
|
||||
end
|
||||
|
||||
test "Mat validations" do
|
||||
mat = Mat.new
|
||||
assert_not mat.valid?
|
||||
assert_equal [:name], mat.errors.keys
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user