Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 53cf81b5b2
Fetching contributors…

Cannot retrieve contributors at this time

21 lines (17 sloc) 0.466 kB
module RspecSequel
module Matchers
class ValidateIntegerMatcher < RspecSequel::Validation
def description
desc = "validate that #{@attribute.inspect} is a valid integer"
desc << " with option(s) #{hash_to_nice_string @options}" unless @options.empty?
desc
end
def validation_type
:validates_integer
end
end
def validate_integer(*args)
ValidateIntegerMatcher.new(*args)
end
end
end
Jump to Line
Something went wrong with that request. Please try again.