Class: Remarkable::ActiveRecord::Matchers::ValidateNumericalityOfMatcher
- Inherits:
-
Matcher::Base
- Object
- Matcher::Base
- Remarkable::ActiveRecord::Matchers::ValidateNumericalityOfMatcher
- 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
Instance Method Details
#description ⇒ Object
18 19 20 |
# File 'lib/remarkable/active_record/macros/validations/validate_numericality_of_matcher.rb', line 18 def description + "for #{@attributes.to_sentence}" end |