An awkward module necessary because we cannot otherwise have ClassVerifyingDouble inherit from Module and still share these methods.
@private
# File lib/rspec/mocks/verifying_double.rb, line 98 def initialize(doubled_module, *args) @doubled_module = doubled_module super(doubled_module.description, *args) end
# File lib/rspec/mocks/verifying_double.rb, line 91 def as_stubbed_const(options = {}) ConstantMutator.stub(@doubled_module.const_to_replace, self, options) self end
[Validate]
Generated with the Darkfish Rdoc Generator 2.