class Shoulda::Matchers::ActiveModel::NumericalityMatchers::NumericTypeMatcher
Public Class Methods
new()
click to toggle source
# File lib/shoulda/matchers/active_model/numericality_matchers/numeric_type_matcher.rb, line 6 def initialize raise NotImplementedError end
Public Instance Methods
allowed_type()
click to toggle source
# File lib/shoulda/matchers/active_model/numericality_matchers/numeric_type_matcher.rb, line 19 def allowed_type raise NotImplementedError end
diff_to_compare()
click to toggle source
# File lib/shoulda/matchers/active_model/numericality_matchers/numeric_type_matcher.rb, line 23 def diff_to_compare raise NotImplementedError end
failure_message()
click to toggle source
# File lib/shoulda/matchers/active_model/numericality_matchers/numeric_type_matcher.rb, line 27 def failure_message @disallow_value_matcher.failure_message end
Also aliased as: failure_message_for_should
failure_message_when_negated()
click to toggle source
# File lib/shoulda/matchers/active_model/numericality_matchers/numeric_type_matcher.rb, line 32 def failure_message_when_negated @disallow_value_matcher.failure_message_when_negated end
Also aliased as: failure_message_for_should_not
matches?(subject)
click to toggle source
# File lib/shoulda/matchers/active_model/numericality_matchers/numeric_type_matcher.rb, line 10 def matches?(subject) @disallow_value_matcher.matches?(subject) end
with_message(message)
click to toggle source
# File lib/shoulda/matchers/active_model/numericality_matchers/numeric_type_matcher.rb, line 14 def with_message(message) @disallow_value_matcher.with_message(message) self end