Sha256: 2f24a403f54e21d51b0fb880957cab4204133646fe0bad582b82a4c6d7ab34c4
Contents?: true
Size: 306 Bytes
Versions: 2
Compression:
Stored size: 306 Bytes
Contents
module MiniTest module Matchers module ActiveModel # Ensures that the model is invalid if the given attribute is not present. # # it { must validate_presence_of(:name) } def validate_presence_of attr ValidationMatcher.new attr, :presence end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
minitest-activemodel-1.1.0 | lib/matchers/validate_presence_matcher.rb |
minitest-activemodel-1.0.0 | lib/matchers/validate_presence_matcher.rb |