Class: RSpec::JsonMatchers::Expectations::Mixins::BuiltIn::NullableOf
- Inherits:
-
AnyOf
- Object
- RSpec::JsonMatchers::Expectation
- Core::CallableExpectation
- Core::CompositeExpectation
- AnyOf
- RSpec::JsonMatchers::Expectations::Mixins::BuiltIn::NullableOf
- Defined in:
- lib/rspec/json_matchers/expectations/mixins/built_in.rb
Overview
It passes when any of expectation returns true It will pass regardless of Core::CompositeExpectation#expectations if the value is nil
Instance Method Summary collapse
Methods inherited from Core::CompositeExpectation
Methods inherited from Core::CallableExpectation
Methods inherited from RSpec::JsonMatchers::Expectation
Instance Method Details
#expect?(value) ⇒ Boolean
137 138 139 |
# File 'lib/rspec/json_matchers/expectations/mixins/built_in.rb', line 137 def expect?(value) value.nil? || super end |