Sha256: ab296893c1d953f30eeba0ac87906a6b64396c112c4893f934c9acd12c9228fd
Contents?: true
Size: 354 Bytes
Versions: 1
Compression:
Stored size: 354 Bytes
Contents
require 'test_helper' require 'models/user' 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-1.0.0 | test/cases/validate_presence_matcher_test.rb |