Sha256: 7f16bd66833e75ff7d98c93941954a742a7d4542a861aa9a9ec1222923ed7de5
Contents?: true
Size: 1005 Bytes
Versions: 4
Compression:
Stored size: 1005 Bytes
Contents
module Shoulda # :nodoc: module Matchers module ActiveModel # :nodoc: module NumericalityMatchers class NumericTypeMatcher def initialize raise NotImplementedError end def matches?(subject) @disallow_value_matcher.matches?(subject) end def with_message(message) @disallow_value_matcher.with_message(message) self end def allowed_type raise NotImplementedError end def diff_to_compare raise NotImplementedError end def failure_message @disallow_value_matcher.failure_message end alias failure_message_for_should failure_message def failure_message_when_negated @disallow_value_matcher.failure_message_when_negated end alias failure_message_for_should_not failure_message_when_negated end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems