Class: RSpec::Mocks::AnyInstance::PositiveExpectationChain Private
| Relationships & Source Files | |
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
self,
ExpectationChain,
Chain
|
|
|
Instance Chain:
|
|
| Inherits: |
RSpec::Mocks::AnyInstance::ExpectationChain
|
| Defined in: | rspec-mocks/lib/rspec/mocks/any_instance/expectation_chain.rb |
Constant Summary
-
ExpectationInvocationOrder =
# File 'rspec-mocks/lib/rspec/mocks/any_instance/expectation_chain.rb', line 38{ :and_return => [:with, nil], :and_raise => [:with, nil], }.freeze
Class Method Summary
Instance Attribute Summary
Instance Method Summary
- #create_message_expectation_on(instance) private Internal use only
- #invocation_order private Internal use only
ExpectationChain - 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 Method Details
#create_message_expectation_on(instance) (private)
[ GitHub ]# File 'rspec-mocks/lib/rspec/mocks/any_instance/expectation_chain.rb', line 25
def (instance) proxy = ::RSpec::Mocks.space.proxy_for(instance) method_name, opts = @expectation_args opts = (opts || {}).merge(:expected_form => IGNORED_BACKTRACE_LINE) me = proxy.(method_name, opts, &@expectation_block) if RSpec::Mocks.configuration.yield_receiver_to_any_instance_implementation_blocks? me.and_yield_receiver_to_implementation end me end
#invocation_order (private)
[ GitHub ]# File 'rspec-mocks/lib/rspec/mocks/any_instance/expectation_chain.rb', line 44
def invocation_order ExpectationInvocationOrder end