Class: RSpec::Mocks::ExpectChain

Inherits:
MessageChain show all
Defined in:
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

+ (Object) expect_chain_on(object, *chain, &blk)

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.



67
68
69
# File 'lib/rspec/mocks/message_chain.rb', line 67

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