Parent

Class/Module Index [+]

Quicksearch

Shoulda::Matchers::ActiveModel::ValidateAbsenceOfMatcher

@private

Public Instance Methods

description() click to toggle source
# File lib/shoulda/matchers/active_model/validate_absence_of_matcher.rb, line 71
def description
  "require #{@attribute} to not be set"
end
matches?(subject) click to toggle source
# File lib/shoulda/matchers/active_model/validate_absence_of_matcher.rb, line 65
def matches?(subject)
  super(subject)
  @expected_message ||= :present
  disallows_value_of(value, @expected_message)
end
with_message(message) click to toggle source
# File lib/shoulda/matchers/active_model/validate_absence_of_matcher.rb, line 60
def with_message(message)
  @expected_message = message
  self
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.