class RSpec::Mocks::ProxyForNil

@private

Attributes

disallow_expectations[RW]
warn_about_expectations[RW]

Public Class Methods

new(order_group) click to toggle source
# File lib/rspec/mocks/proxy.rb, line 429
def initialize(order_group)
  set_expectation_behavior
  super(nil, order_group)
end

Public Instance Methods

add_message_expectation(method_name, opts={}, &block) click to toggle source
# File lib/rspec/mocks/proxy.rb, line 437
def add_message_expectation(method_name, opts={}, &block)
  warn_or_raise!(method_name)
  super
end
add_stub(method_name, opts={}, &implementation) click to toggle source
# File lib/rspec/mocks/proxy.rb, line 442
def add_stub(method_name, opts={}, &implementation)
  warn_or_raise!(method_name)
  super
end