Class: RspecSequel::Matchers::ValidateIntegerMatcher
- Inherits:
-
Validation
- Object
- Base
- Validation
- RspecSequel::Matchers::ValidateIntegerMatcher
- Defined in:
- lib/rspec_sequel/matchers/validate_integer.rb
Instance Method Summary collapse
Methods inherited from Validation
#additionnal_param_required?, #additionnal_param_type, #args_to_called_attributes, #initialize, #valid?, #valid_options
Methods inherited from Base
#failure_message, #hash_to_nice_string, #initialize, #matches?, #negative_failure_message
Constructor Details
This class inherits a constructor from RspecSequel::Validation
Instance Method Details
#description ⇒ Object
5 6 7 8 9 |
# File 'lib/rspec_sequel/matchers/validate_integer.rb', line 5 def description desc = "validate that #{@attribute.inspect} is a valid integer" desc << " with option(s) #{hash_to_nice_string @options}" unless @options.empty? desc end |
#validation_type ⇒ Object
11 12 13 |
# File 'lib/rspec_sequel/matchers/validate_integer.rb', line 11 def validation_type :validates_integer end |