Class: RSpec::Mocks::ExpectChain

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

Instance Attribute Summary

Attributes inherited from MessageChain

#block, #chain, #object

Class Method Summary collapse

Methods inherited from MessageChain

#initialize, #setup_chain

Constructor Details

This class inherits a constructor from RSpec::Mocks::MessageChain

Class Method Details

.expect_chain_on(object, *chain, &blk) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



63
64
65
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rspec-mocks-3.12.2/lib/rspec/mocks/message_chain.rb', line 63

def self.expect_chain_on(object, *chain, &blk)
  new(object, *chain, &blk).setup_chain
end