123456789_123456789_123456789_123456789_123456789_

Class: RSpec::Mocks::StubChain Private

Do not use. This class is for internal use only.
Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, MessageChain
Instance Chain:
self, MessageChain
Inherits: RSpec::Mocks::MessageChain
Defined in: rspec-mocks/lib/rspec/mocks/message_chain.rb

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Class Method Details

.stub_chain_on(object, *chain, &blk)

[ GitHub ]

  
# File 'rspec-mocks/lib/rspec/mocks/message_chain.rb', line 76

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

Instance Method Details

#expectation(object, message, &return_block) (private)

[ GitHub ]

  
# File 'rspec-mocks/lib/rspec/mocks/message_chain.rb', line 82

def expectation(object, message, &return_block)
  ::RSpec::Mocks.allow_message(object, message, {}, &return_block)
end