Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: ab7005794f
Fetching contributors…

Cannot retrieve contributors at this time

25 lines (20 sloc) 0.553 kB
module RspecSequel
module Matchers
class ValidateIncludesMatcher < RspecSequel::Validation
def description
desc = "validate that #{@attribute.inspect} is included in #{@additionnal.inspect}"
desc << " with option(s) #{hash_to_nice_string @options}" unless @options.empty?
desc
end
def additionnal_param_type
Enumerable
end
def validation_type
:validates_includes
end
end
def validate_includes(*args)
ValidateIncludesMatcher.new(*args)
end
end
end
Jump to Line
Something went wrong with that request. Please try again.