Class: RSpec::Mocks::TestDoubleProxy

Inherits:
Proxy
  • Object
show all
Defined in:
lib/rspec/mocks/proxy.rb

Instance Attribute Summary

Attributes inherited from Proxy

#object

Instance Method Summary (collapse)

Methods inherited from Proxy

#add_message_expectation, #add_simple_expectation, #add_simple_stub, #add_stub, #as_null_object, #build_expectation, #check_for_unexpected_arguments, #has_negative_expectation?, #initialize, #message_received, #null_object?, #original_method_handle_for, #prepended_modules_of_singleton_class, #raise_missing_default_stub_error, #raise_unexpected_message_args_error, #raise_unexpected_message_error, #received_message?, #record_message_received, #remove_stub, #remove_stub_if_present, #replay_received_message_on, #verify, #visibility_for

Constructor Details

This class inherits a constructor from RSpec::Mocks::Proxy

Instance Method Details

- (Object) reset



251
252
253
254
255
# File 'lib/rspec/mocks/proxy.rb', line 251

def reset
  @method_doubles.clear
  object.__disallow_further_usage!
  super
end