module SequelSpec::Matchers::Validation

Public Instance Methods

ensure_inclusion_of(attribute)
Alias for: validate_includes
ensure_length_of(attribute)
Alias for: validate_length
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_format_of(attribute)
Alias for: validate_format
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_integrity_of(attribute)
Alias for: validate_integer
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
validate_length_of(attribute)
Alias for: validate_length
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_numericality_of(attribute)
Alias for: validate_numeric
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_presence_of(attribute)
Alias for: validate_presence
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_schema_types_of(attribute)
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_type_of(attribute)
Alias for: validate_type
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
validate_uniqueness_of(attribute)
Alias for: validate_unique