Sha256: 470c8440f1943f354719dc05c497991a56e231f9d239c69d079c0cf64f17c5d2
Contents?: true
Size: 332 Bytes
Versions: 1
Compression:
Stored size: 332 Bytes
Contents
require 'test_helper' class ValidatePresenceMatcherTest < MiniTest::Unit::TestCase test 'must validate presence of a required attribute' do assert_must validate_presence_of(:name), User end test 'must not validate presence of an optional attribute' do assert_wont validate_presence_of(:not_required), User end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
minitest-activemodel-0.0.1 | test/cases/validate_presence_matcher_test.rb |