Sha256: d4df487b40841ea756c3b6560732c3c373b92ae0a04f5a376d490c5426d7be6e
Contents?: true
Size: 1.18 KB
Versions: 1
Compression:
Stored size: 1.18 KB
Contents
module Shoulda module Matchers module ActiveModel module NumericalityMatchers # @private 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 strict @disallow_value_matcher.strict self end def on(context) @disallow_value_matcher.on(context) 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shoulda-matchers-3.0.0.rc1 | lib/shoulda/matchers/active_model/numericality_matchers/numeric_type_matcher.rb |