Class: RSpec::JsonMatchers::Expectations::Mixins::BuiltIn::PositiveNumber
- Inherits:
-
Abstract::NumericExpectation
- Object
- RSpec::JsonMatchers::Expectation
- Core::SingletonExpectation
- Abstract::NumericExpectation
- RSpec::JsonMatchers::Expectations::Mixins::BuiltIn::PositiveNumber
- 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
42 43 44 |
# File 'lib/rspec/json_matchers/expectations/mixins/built_in.rb', line 42 def expect?(value) super && value > 0 end |