mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-25 01:14:43 +00:00
15 lines
271 B
Ruby
15 lines
271 B
Ruby
require 'test_helper'
|
|
|
|
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.attribute_names
|
|
end
|
|
|
|
end
|