RSpec::Mocks::AnyInstance::ExpectationChain

Public Class Methods

new(*args, &block) click to toggle source
# File lib/rspec/mocks/any_instance.rb, line 76
def initialize(*args, &block)
  record(:should_receive, *args, &block)
  @expectation_fulfilled = false
end

Public Instance Methods

expectation_filfilled?() click to toggle source
# File lib/rspec/mocks/any_instance.rb, line 94
def expectation_filfilled?
  @expectation_fulfilled || constrained_to_any_of?(:never, :any_number_of_times)
end
expectation_fulfilled!() click to toggle source
# File lib/rspec/mocks/any_instance.rb, line 90
def expectation_fulfilled!
  @expectation_fulfilled = true
end
invocation_order() click to toggle source
# File lib/rspec/mocks/any_instance.rb, line 81
def invocation_order
  @invocation_order ||= {
    :should_receive => [nil],
    :with => [:should_receive],
    :and_return => [:with, :should_receive],
    :and_raise => [:with, :should_receive]
  }
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.