Class: RSpec::JsonMatchers::Expectations::Mixins::BuiltIn::AllOf
- Inherits:
-
Core::CompositeExpectation
- Object
- RSpec::JsonMatchers::Expectation
- Core::CallableExpectation
- Core::CompositeExpectation
- RSpec::JsonMatchers::Expectations::Mixins::BuiltIn::AllOf
- Defined in:
- lib/rspec/json_matchers/expectations/mixins/built_in.rb
Overview
It passes when all of expectations return true
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
126 127 128 129 130 |
# File 'lib/rspec/json_matchers/expectations/mixins/built_in.rb', line 126 def expect?(value) expectations.all? do |expectation| expectation.expect?(value) end end |