@private
# 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
# 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
# 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
# File lib/rspec/mocks/proxy_for_nil.rb, line 6 def initialize @warn_about_expectations = true super nil end