Class/Module Index [+]

Quicksearch

RSpec::Mocks::ProxyForNil

@private

Attributes

warn_about_expectations[RW]
warn_about_expectations?[RW]

Public Class Methods

new() click to toggle source
# File lib/rspec/mocks/proxy_for_nil.rb, line 6
def initialize
  @warn_about_expectations = true
  super nil
end

Public Instance Methods

add_message_expectation(location, method_name, opts={}, &block) click to toggle source
# File lib/rspec/mocks/proxy_for_nil.rb, line 13
def add_message_expectation(location, method_name, opts={}, &block)
  warn(method_name) if warn_about_expectations?
  super
end
add_negative_message_expectation(location, method_name, &implementation) click to toggle source
# File lib/rspec/mocks/proxy_for_nil.rb, line 18
def add_negative_message_expectation(location, method_name, &implementation)
  warn(method_name) if warn_about_expectations?
  super
end
add_stub(location, method_name, opts={}, &implementation) click to toggle source
# File lib/rspec/mocks/proxy_for_nil.rb, line 23
def add_stub(location, method_name, opts={}, &implementation)
  warn(method_name) if warn_about_expectations?
  super
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.