Class: RSpec::JsonMatchers::Expectations::Mixins::BuiltIn::NegativeNumber
- Inherits:
-
Abstract::NumericExpectation
- Object
- RSpec::JsonMatchers::Expectation
- Core::SingletonExpectation
- Abstract::NumericExpectation
- RSpec::JsonMatchers::Expectations::Mixins::BuiltIn::NegativeNumber
- Defined in:
- lib/rspec/json_matchers/expectations/mixins/built_in.rb
Overview
Checks the value is a Numeric & less then zero
Instance Method Summary collapse
Methods inherited from Core::SingletonExpectation
Methods inherited from RSpec::JsonMatchers::Expectation
Instance Method Details
#expect?(value) ⇒ Boolean
51 52 53 |
# File 'lib/rspec/json_matchers/expectations/mixins/built_in.rb', line 51 def expect?(value) super && value < 0 end |