class Shoulda::Matchers::ActiveModel::DisallowValueMatcher

@private

Attributes

allow_matcher[R]

Public Class Methods

new(value) click to toggle source
# File lib/shoulda/matchers/active_model/disallow_value_matcher.rb, line 27
def initialize(value)
  @allow_matcher = AllowValueMatcher.new(value)
end

Public Instance Methods

does_not_match?(subject) click to toggle source
# File lib/shoulda/matchers/active_model/disallow_value_matcher.rb, line 35
def does_not_match?(subject)
  allow_matcher.matches?(subject)
end
failure_message() click to toggle source
# File lib/shoulda/matchers/active_model/disallow_value_matcher.rb, line 64
def failure_message
  allow_matcher.failure_message_when_negated
end
failure_message_when_negated() click to toggle source
# File lib/shoulda/matchers/active_model/disallow_value_matcher.rb, line 68
def failure_message_when_negated
  allow_matcher.failure_message
end
for(attribute) click to toggle source
# File lib/shoulda/matchers/active_model/disallow_value_matcher.rb, line 39
def for(attribute)
  allow_matcher.for(attribute)
  self
end
ignoring_interference_by_writer(value = :always) click to toggle source
# File lib/shoulda/matchers/active_model/disallow_value_matcher.rb, line 59
def ignoring_interference_by_writer(value = :always)
  allow_matcher.ignoring_interference_by_writer(value)
  self
end
matches?(subject) click to toggle source
# File lib/shoulda/matchers/active_model/disallow_value_matcher.rb, line 31
def matches?(subject)
  allow_matcher.does_not_match?(subject)
end
on(context) click to toggle source
# File lib/shoulda/matchers/active_model/disallow_value_matcher.rb, line 44
def on(context)
  allow_matcher.on(context)
  self
end
strict(strict = true) click to toggle source
# File lib/shoulda/matchers/active_model/disallow_value_matcher.rb, line 54
def strict(strict = true)
  allow_matcher.strict(strict)
  self
end
with_message(message, options={}) click to toggle source
# File lib/shoulda/matchers/active_model/disallow_value_matcher.rb, line 49
def with_message(message, options={})
  allow_matcher.with_message(message, options)
  self
end