module Shoulda::Matchers::ActiveModel

def allow_value(*values)

Returns:
  • (AllowValueMatcher) -
def allow_value(*values)
  if values.empty?
    raise ArgumentError, 'need at least one argument'
  else
    AllowValueMatcher.new(*values)
  end
end