Class: RSpec::JsonMatchers::Expectations::Mixins::BuiltIn::AnyOf
- Inherits:
-
Core::CompositeExpectation
- Object
- RSpec::JsonMatchers::Expectation
- Core::CallableExpectation
- Core::CompositeExpectation
- RSpec::JsonMatchers::Expectations::Mixins::BuiltIn::AnyOf
- Defined in:
- lib/rspec/json_matchers/expectations/mixins/built_in.rb
Overview
It passes when any of expectation returns true
Direct Known Subclasses
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
116 117 118 119 120 |
# File 'lib/rspec/json_matchers/expectations/mixins/built_in.rb', line 116 def expect?(value) expectations.any? do |expectation| expectation.expect?(value) end end |