class Shoulda::Matchers::ActiveModel::DisallowValueMatcher
:nodoc:
:nodoc:
def allowed_types
def allowed_types "" end
def failure_message
def failure_message @allow_matcher.negative_failure_message 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 with_message(message)
def with_message(message) @allow_matcher.with_message(message) self end