Module: Easy::Matchers::Validations
- Defined in:
- lib/matchers/validations.rb,
lib/matchers/validations/length_of.rb,
lib/matchers/validations/absence_of.rb,
lib/matchers/validations/presence_of.rb,
lib/matchers/validations/acceptance_of.rb,
lib/matchers/validations/confirmation_of.rb,
lib/matchers/validations/numericality_of.rb
Defined Under Namespace
Classes: HaveValidationMatcher, ValidateAbsenceOfMatcher, ValidateAcceptanceOfMatcher, ValidateConfirmationOfMatcher, ValidateLengthOfMatcher, ValidateNumericalityOfMatcher, ValidatePresenceOfMatcher
Instance Method Summary
collapse
Instance Method Details
#validate_absence_of(*attributes) ⇒ Object
4
5
6
|
# File 'lib/matchers/validations/absence_of.rb', line 4
def validate_absence_of(*attributes)
ValidateAbsenceOfMatcher.new(attributes)
end
|
#validate_acceptance_of(*attributes) ⇒ Object
4
5
6
|
# File 'lib/matchers/validations/acceptance_of.rb', line 4
def validate_acceptance_of(*attributes)
ValidateAcceptanceOfMatcher.new(attributes)
end
|
#validate_confirmation_of(*attributes) ⇒ Object
#validate_length_of(*attributes) ⇒ Object
4
5
6
|
# File 'lib/matchers/validations/length_of.rb', line 4
def validate_length_of(*attributes)
ValidateLengthOfMatcher.new(attributes)
end
|
#validate_numericality_of(*attributes) ⇒ Object
#validate_presence_of(*attributes) ⇒ Object
4
5
6
|
# File 'lib/matchers/validations/presence_of.rb', line 4
def validate_presence_of(*attributes)
ValidatePresenceOfMatcher.new(attributes)
end
|