Class: RSpec::Mocks::AnyInstance::ExpectationChain
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-mocks-3.12.2/lib/rspec/mocks/any_instance/expectation_chain.rb
Direct Known Subclasses
Instance Method Summary collapse
- #expectation_fulfilled? ⇒ Boolean
-
#initialize(*args, &block) ⇒ ExpectationChain
constructor
A new instance of ExpectationChain.
Methods inherited from Chain
#constrained_to_any_of?, #expectation_fulfilled!, #matches_args?, #never, #playback!, #with
Methods included from Chain::Customizations
#and_call_original, #and_raise, #and_return, #and_throw, #and_wrap_original, #and_yield, #at_least, #at_most, #exactly, #never, #once, record, #thrice, #time, #times, #twice, #with
Constructor Details
#initialize(*args, &block) ⇒ ExpectationChain
Returns a new instance of ExpectationChain.
10 11 12 13 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-mocks-3.12.2/lib/rspec/mocks/any_instance/expectation_chain.rb', line 10 def initialize(*args, &block) @expectation_fulfilled = false super end |
Instance Method Details
#expectation_fulfilled? ⇒ Boolean
6 7 8 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-mocks-3.12.2/lib/rspec/mocks/any_instance/expectation_chain.rb', line 6 def expectation_fulfilled? @expectation_fulfilled || constrained_to_any_of?(:never) end |