Class: RSpec::Mocks::ClassVerifyingDouble

Inherits:
Module
  • Object
show all
Includes:
ObjectVerifyingDoubleMethods
Defined in:
lib/rspec/mocks/verifying_double.rb

Overview

Effectively the same as an ObjectVerifyingDouble (since a class is a type of object), except with Module in the inheritance chain so that transferring nested constants to work.

Method Summary

Methods included from ObjectVerifyingDoubleMethods

#__build_mock_proxy, #as_stubbed_const, #initialize

Methods included from VerifyingDouble

#__send__, #initialize, #method_missing, #respond_to?, #send

Methods included from TestDouble

#==, #__build_mock_proxy, #__disallow_further_usage!, #as_null_object, #freeze, #initialize, #inspect, #null_object?, #respond_to?, #to_s

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class RSpec::Mocks::VerifyingDouble