module RSpec::Mocks::VerifyingProxyMethods

@private

Public Instance Methods

add_message_expectation(method_name, opts={}, &block) click to toggle source
Calls superclass method
# File lib/rspec/mocks/verifying_proxy.rb, line 19
def add_message_expectation(method_name, opts={}, &block)
  ensure_implemented(method_name)
  super
end
add_simple_stub(method_name, *args) click to toggle source
Calls superclass method
# File lib/rspec/mocks/verifying_proxy.rb, line 14
def add_simple_stub(method_name, *args)
  ensure_implemented(method_name)
  super
end
add_stub(method_name, opts={}, &implementation) click to toggle source
Calls superclass method
# File lib/rspec/mocks/verifying_proxy.rb, line 9
def add_stub(method_name, opts={}, &implementation)
  ensure_implemented(method_name)
  super
end
ensure_implemented(method_name) click to toggle source
# File lib/rspec/mocks/verifying_proxy.rb, line 24
def ensure_implemented(method_name)
  if method_reference[method_name].unimplemented?
    @error_generator.raise_unimplemented_error(
      @doubled_module,
      method_name
    )
  end
end
ensure_publicly_implemented(method_name, object) click to toggle source
# File lib/rspec/mocks/verifying_proxy.rb, line 33
def ensure_publicly_implemented(method_name, object)
  ensure_implemented(method_name)
  visibility = method_reference[method_name].visibility

  unless visibility == :public
    @error_generator.raise_non_public_error(method_name, visibility)
  end
end