1
0
mirror of https://github.com/jcwimer/wrestlingApp synced 2026-04-06 22:44:14 +00:00

Model validations

This commit is contained in:
2015-12-30 19:04:41 +00:00
parent c82d6d727b
commit 198c6d5e82
10 changed files with 34 additions and 3 deletions

View File

@@ -4,4 +4,10 @@ class WeightTest < ActiveSupport::TestCase
test "the truth" do
assert true
end
test "Weight validations" do
weight = Weight.new
assert_not weight.valid?
assert_equal [:max], weight.errors.keys
end
end