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.539 kB
module RspecSequel
module Matchers
class ValidateFormatMatcher < RspecSequel::Validation
def description
desc = "validate format of #{@attribute.inspect} against #{@additionnal.inspect}"
desc << " with option(s) #{hash_to_nice_string @options}" unless @options.empty?
desc
end
def additionnal_param_type
Regexp
end
def validation_type
:validates_format
end
end
def validate_format(*args)
ValidateFormatMatcher.new(*args)
end
end
end
Jump to Line
Something went wrong with that request. Please try again.