module SequelSpec::Matchers::Validation
Public Instance Methods
validate_format(attribute)
click to toggle source
# File lib/sequel_spec/validation/validate_format_matcher.rb, line 35 def validate_format(attribute) ValidateFormatMatcher.new(attribute) end
Also aliased as: validate_format_of
validate_includes(attribute)
click to toggle source
# File lib/sequel_spec/validation/validate_includes_matcher.rb, line 36 def validate_includes(attribute) ValidateIncludesMatcher.new(attribute) end
Also aliased as: ensure_inclusion_of
validate_integer(attribute)
click to toggle source
# File lib/sequel_spec/validation/validate_integer_matcher.rb, line 16 def validate_integer(attribute) ValidateIntegerMatcher.new(attribute) end
Also aliased as: validate_integrity_of
validate_length(attribute)
click to toggle source
# File lib/sequel_spec/validation/validate_length_matcher.rb, line 73 def validate_length(attribute) ValidateLengthMatcher.new(attribute) end
Also aliased as: validate_length_of, ensure_length_of
validate_not_null(attribute)
click to toggle source
# File lib/sequel_spec/validation/validate_not_null_matcher.rb, line 16 def validate_not_null(attribute) ValidateNotNullMatcher.new(attribute) end
validate_numeric(attribute)
click to toggle source
# File lib/sequel_spec/validation/validate_numeric_matcher.rb, line 16 def validate_numeric(attribute) ValidateNumericMatcher.new(attribute) end
Also aliased as: validate_numericality_of
validate_presence(attribute)
click to toggle source
# File lib/sequel_spec/validation/validate_presence_matcher.rb, line 16 def validate_presence(attribute) ValidatePresenceMatcher.new(attribute) end
Also aliased as: validate_presence_of
validate_schema_types(attribute)
click to toggle source
# File lib/sequel_spec/validation/validate_schema_types_matcher.rb, line 16 def validate_schema_types(attribute) ValidateSchemaTypesMatcher.new(attribute) end
Also aliased as: validate_schema_types_of
validate_type(attribute)
click to toggle source
# File lib/sequel_spec/validation/validate_type_matcher.rb, line 35 def validate_type(attribute) ValidateTypeMatcher.new(attribute) end
Also aliased as: validate_type_of
validate_unique(attribute)
click to toggle source
# File lib/sequel_spec/validation/validate_unique_matcher.rb, line 24 def validate_unique(attribute) ValidateUniqueMatcher.new(attribute) end
Also aliased as: validate_uniqueness_of