Class: Remarkable::ActiveRecord::Matchers::ValidateNumericalityOfMatcher

Inherits:
Matcher::Base
  • Object
show all
Includes:
Helpers
Defined in:
lib/remarkable/active_record/macros/validations/validate_numericality_of_matcher.rb

Constant Summary collapse

NUMERIC_COMPARISIONS =
[:equal_to, :less_than, :greater_than, :less_than_or_equal_to, :greater_than_or_equal_to]

Instance Method Summary collapse

Methods included from Helpers

#allow_blank, #allow_nil, #message

Methods included from Default::Helpers

#assert_contains, #assert_does_not_contain

Methods inherited from Matcher::Base

#failure_message, #negative, #negative_failure_message, #spec

Methods included from Matcher::DSL

included, #matches?

Instance Method Details

#descriptionObject



18
19
20
# File 'lib/remarkable/active_record/macros/validations/validate_numericality_of_matcher.rb', line 18

def description
  default_message + "for #{@attributes.to_sentence}"
end