Class: RSpec::Mocks::AnyInstance::ExpectChainChain

Inherits:
StubChain show all
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-mocks-3.12.2/lib/rspec/mocks/any_instance/expect_chain_chain.rb

Instance Method Summary collapse

Methods inherited from Chain

#constrained_to_any_of?, #expectation_fulfilled!, #matches_args?, #never, #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) ⇒ ExpectChainChain

Returns a new instance of ExpectChainChain.



6
7
8
9
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-mocks-3.12.2/lib/rspec/mocks/any_instance/expect_chain_chain.rb', line 6

def initialize(*args)
  super
  @expectation_fulfilled = false
end

Instance Method Details

#expectation_fulfilled?Boolean

Returns:

  • (Boolean)


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/expect_chain_chain.rb', line 11

def expectation_fulfilled?
  @expectation_fulfilled
end

#playback!(instance) ⇒ Object



15
16
17
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-mocks-3.12.2/lib/rspec/mocks/any_instance/expect_chain_chain.rb', line 15

def playback!(instance)
  super.tap { @expectation_fulfilled = true }
end