module NoBrainer::Matchers::Validations
Public Instance Methods
validate_acceptance_of(field)
click to toggle source
# File lib/matchers/validations/acceptance_of.rb, line 6 def validate_acceptance_of(field) HaveValidationMatcher.new(field, :acceptance) end
validate_confirmation_of(field)
click to toggle source
# File lib/matchers/validations/confirmation_of.rb, line 12 def validate_confirmation_of(field) ValidateConfirmationOfMatcher.new(field) end
validate_exclusion_of(field)
click to toggle source
# File lib/matchers/validations/exclusion_of.rb, line 46 def validate_exclusion_of(field) ValidateExclusionOfMatcher.new(field) end
validate_format_of(field)
click to toggle source
# File lib/matchers/validations/format_of.rb, line 68 def validate_format_of(field) ValidateFormatOfMatcher.new(field) end
validate_inclusion_of(field)
click to toggle source
# File lib/matchers/validations/inclusion_of.rb, line 46 def validate_inclusion_of(field) ValidateInclusionOfMatcher.new(field) end
validate_length_of(field)
click to toggle source
# File lib/matchers/validations/length_of.rb, line 122 def validate_length_of(field) ValidateLengthOfMatcher.new(field) end
validate_numericality_of(field)
click to toggle source
# File lib/matchers/validations/numericality_of.rb, line 87 def validate_numericality_of(field) ValidateNumericalityOfMatcher.new(field) end
validate_presence_of(field)
click to toggle source
# File lib/matchers/validations/presence_of.rb, line 6 def validate_presence_of(field) HaveValidationMatcher.new(field, :presence) end
validate_uniqueness_of(field)
click to toggle source
# File lib/matchers/validations/uniqueness_of.rb, line 49 def validate_uniqueness_of(field) ValidateUniquenessOfMatcher.new(field) end