ValidationMatcher
@private
# File lib/shoulda/matchers/active_model/validate_presence_of_matcher.rb, line 109 def description "require #{@attribute} to be set" end
# File lib/shoulda/matchers/active_model/validate_presence_of_matcher.rb, line 98 def matches?(subject) super(subject) @expected_message ||= :blank if secure_password_being_validated? disallows_and_double_checks_value_of!(blank_value, @expected_message) else disallows_value_of(blank_value, @expected_message) end end
Generated with the Darkfish Rdoc Generator 2.