Class: RSpec::JsonMatchers::Expectations::Mixins::BuiltIn::PositiveNumber

Inherits:
Abstract::NumericExpectation show all
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

inherited

Methods inherited from RSpec::JsonMatchers::Expectation

build, build_many

Instance Method Details

#expect?(value) ⇒ Boolean

Returns:

  • (Boolean)


42
43
44
# File 'lib/rspec/json_matchers/expectations/mixins/built_in.rb', line 42

def expect?(value)
  super && value > 0
end