class Shoulda::Matchers::ActiveModel::DisallowValueMatcher
@private
Attributes
Public Class Methods
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
Source
# File lib/shoulda/matchers/active_model/disallow_value_matcher.rb, line 35 def does_not_match?(subject) allow_matcher.matches?(subject) end
Source
# File lib/shoulda/matchers/active_model/disallow_value_matcher.rb, line 64 def failure_message allow_matcher.failure_message_when_negated end
Source
# File lib/shoulda/matchers/active_model/disallow_value_matcher.rb, line 68 def failure_message_when_negated allow_matcher.failure_message end
Source
# File lib/shoulda/matchers/active_model/disallow_value_matcher.rb, line 39 def for(attribute) allow_matcher.for(attribute) self end
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
Source
# File lib/shoulda/matchers/active_model/disallow_value_matcher.rb, line 31 def matches?(subject) allow_matcher.does_not_match?(subject) end
Source
# File lib/shoulda/matchers/active_model/disallow_value_matcher.rb, line 44 def on(context) allow_matcher.on(context) self end
Source
# File lib/shoulda/matchers/active_model/disallow_value_matcher.rb, line 54 def strict(strict = true) allow_matcher.strict(strict) self end
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