RSpec::Mocks::AnyInstance::StubChain

@private

Public Class Methods

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

@private

     # File lib/rspec/mocks/any_instance/chain.rb, line 109
109:         def initialize(*args, &block)
110:           record(:stub, *args, &block)
111:         end

Public Instance Methods

expectation_fulfilled?() click to toggle source

@private

     # File lib/rspec/mocks/any_instance/chain.rb, line 114
114:         def expectation_fulfilled?
115:           true
116:         end

Private Instance Methods

invocation_order() click to toggle source
     # File lib/rspec/mocks/any_instance/chain.rb, line 120
120:         def invocation_order
121:           @invocation_order ||= {
122:             :stub => [nil],
123:             :with => [:stub],
124:             :and_return => [:with, :stub],
125:             :and_raise => [:with, :stub],
126:             :and_yield => [:with, :stub]
127:           }
128:         end
verify_invocation_order(rspec_method_name, *args, &block) click to toggle source
     # File lib/rspec/mocks/any_instance/chain.rb, line 130
130:         def verify_invocation_order(rspec_method_name, *args, &block)
131:           unless invocation_order[rspec_method_name].include?(last_message)
132:             raise(NoMethodError, "Undefined method #{rspec_method_name}")
133:           end
134:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.