Class: RSpec::Mocks::AnyInstance::ExpectChainChain Private
| Relationships & Source Files | |
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
|
|
|
Instance Chain:
|
|
| Inherits: |
RSpec::Mocks::AnyInstance::StubChain
|
| Defined in: | rspec-mocks/lib/rspec/mocks/any_instance/expect_chain_chain.rb |
Constant Summary
StubChain - Inherited
Class Method Summary
Instance Attribute Summary
- #expectation_fulfilled? ⇒ Boolean readonly Internal use only
StubChain - Inherited
Chain - Inherited
Instance Method Summary
- #playback!(instance) Internal use only
- #create_message_expectation_on(instance) private Internal use only
- #invocation_order private Internal use only
StubChain - Inherited
Chain - Inherited
| #constrained_to_any_of?, #expectation_fulfilled!, #matches_args?, #never, #playback!, #with, #last_message, #messages, #record |
Chain::Customizations - Included
| #and_call_original | Records the |
| #and_raise | Records the |
| #and_return | Records the |
| #and_throw | Records the |
| #and_wrap_original | Records the |
| #and_yield | Records the |
| #at_least | Records the |
| #at_most | Records the |
| #exactly | Records the |
| #never | Records the |
| #once | Records the |
| #thrice | Records the |
| #time | Records the |
| #times | Records the |
| #twice | Records the |
| #with | Records the |
Instance Attribute Details
#expectation_fulfilled? ⇒ Boolean (readonly)
# File 'rspec-mocks/lib/rspec/mocks/any_instance/expect_chain_chain.rb', line 11
def expectation_fulfilled? @expectation_fulfilled end
Instance Method Details
#create_message_expectation_on(instance) (private)
[ GitHub ]# File 'rspec-mocks/lib/rspec/mocks/any_instance/expect_chain_chain.rb', line 21
def (instance) ::RSpec::Mocks::ExpectChain.expect_chain_on(instance, *@expectation_args, &@expectation_block) end
#invocation_order (private)
[ GitHub ]# File 'rspec-mocks/lib/rspec/mocks/any_instance/expect_chain_chain.rb', line 25
def invocation_order EmptyInvocationOrder end
#playback!(instance)
[ GitHub ]# File 'rspec-mocks/lib/rspec/mocks/any_instance/expect_chain_chain.rb', line 15
def playback!(instance) super.tap { @expectation_fulfilled = true } end