Class: RSpec::Mocks::DirectModuleReference

Inherits:
DirectObjectReference show all
Defined in:
lib/rspec/mocks/object_reference.rb

Overview

Used when a module is passed to `class_double` or `instance_double`. Represents a reference to that module.

Instance Method Summary (collapse)

Methods inherited from DirectObjectReference

#defined?, #initialize, #when_loaded

Constructor Details

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

Instance Method Details

- (Object) const_to_replace Also known as: description



55
56
57
# File 'lib/rspec/mocks/object_reference.rb', line 55

def const_to_replace
  @object.name
end