RSpec::Mocks::AnyInstance::ExpectationChain

@private

Public Class Methods

new(*args, &block) click to toggle source

@private

    # File lib/rspec/mocks/any_instance/chain.rb, line 80
80:         def initialize(*args, &block)
81:           record(:should_receive, *args, &block)
82:           @expectation_fulfilled = false
83:         end

Public Instance Methods

expectation_fulfilled?() click to toggle source

@private

    # File lib/rspec/mocks/any_instance/chain.rb, line 86
86:         def expectation_fulfilled?
87:           @expectation_fulfilled || constrained_to_any_of?(:never, :any_number_of_times)
88:         end

Private Instance Methods

invocation_order() click to toggle source
     # File lib/rspec/mocks/any_instance/chain.rb, line 95
 95:         def invocation_order
 96:           @invocation_order ||= {
 97:             :should_receive => [nil],
 98:             :with => [:should_receive],
 99:             :and_return => [:with, :should_receive],
100:             :and_raise => [:with, :should_receive]
101:           }
102:         end
verify_invocation_order(rspec_method_name, *args, &block) click to toggle source
    # File lib/rspec/mocks/any_instance/chain.rb, line 92
92:         def verify_invocation_order(rspec_method_name, *args, &block)
93:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.