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.464 kB
module RspecSequel
module Matchers
class ValidateNumericMatcher < RspecSequel::Validation
def description
desc = "validate that #{@attribute.inspect} is a valid float"
desc << " with option(s) #{hash_to_nice_string @options}" unless @options.empty?
desc
end
def validation_type
:validates_numeric
end
end
def validate_numeric(*args)
ValidateNumericMatcher.new(*args)
end
end
end
Jump to Line
Something went wrong with that request. Please try again.