class Shoulda::Matchers::ActiveModel::DisallowValueMatcher
:nodoc:
:nodoc:
def allowed_types
def allowed_types '' end
def failure_message_for_should
def failure_message_for_should @allow_matcher.failure_message_for_should_not end
def failure_message_for_should_not
def failure_message_for_should_not @allow_matcher.failure_message_for_should end
def for(attribute)
def for(attribute) @allow_matcher.for(attribute) self end
def initialize(value)
:nodoc:
def initialize(value) @allow_matcher = AllowValueMatcher.new(value) end
def matches?(subject)
def matches?(subject) !@allow_matcher.matches?(subject) end
def strict
def strict @allow_matcher.strict self end
def with_message(message)
def with_message(message) @allow_matcher.with_message(message) self end