Class RSpec::Mocks::Mock
In: lib/rspec/mocks/mock.rb
Parent: Object

Methods

==   inspect   new   respond_to?   to_s   to_str  

Included Modules

Methods

Public Class methods

Creates a new test double with a `name` (that will be used in error messages only)

Public Instance methods

This allows for comparing the mock to other objects that proxy such as ActiveRecords belongs_to proxy objects. By making the other object run the comparison, we‘re sure the call gets delegated to the proxy target.

@private

@private

to_str()

Alias for to_s

[Validate]