class Shoulda::Matchers::ActiveModel::DisallowValueMatcher
@private
def does_not_match?(subject)
def does_not_match?(subject) allow_matcher.matches?(subject) end
def failure_message
def failure_message allow_matcher.failure_message_when_negated end
def failure_message_when_negated
def failure_message_when_negated allow_matcher.failure_message end
def for(attribute)
def for(attribute) allow_matcher.for(attribute) self end
def ignoring_interference_by_writer(value = :always)
def ignoring_interference_by_writer(value = :always) allow_matcher.ignoring_interference_by_writer(value) self end
def initialize(value)
def initialize(value) @allow_matcher = AllowValueMatcher.new(value) end
def matches?(subject)
def matches?(subject) allow_matcher.does_not_match?(subject) end
def on(context)
def on(context) allow_matcher.on(context) self end
def strict(strict = true)
def strict(strict = true) allow_matcher.strict(strict) self end
def with_message(message, options = {})
def with_message(message, options = {}) allow_matcher.with_message(message, options) self end