class SequelSpec::Matchers::Validation::ValidateUniqueMatcher

Public Instance Methods

args_to_called_attributes(args) click to toggle source
# File lib/sequel_spec/validation/validate_unique_matcher.rb, line 15
def args_to_called_attributes(args)
  called_attributes = []
  until args.empty?
    called_attributes << args.shift
  end
  called_attributes
end
description() click to toggle source
# File lib/sequel_spec/validation/validate_unique_matcher.rb, line 5
def description
  desc = "validate uniqueness of #{@attribute.inspect}"
  desc << " with option(s) #{hash_to_nice_string @options}" unless @options.empty?
  desc
end
validation_type() click to toggle source
# File lib/sequel_spec/validation/validate_unique_matcher.rb, line 11
def validation_type
  :validates_unique
end