123456789_123456789_123456789_123456789_123456789_

Class: RSpec::Mocks::Matchers::Receive::DefaultDescribable Private

Do not use. This class is for internal use only.
Relationships & Source Files
Inherits: Object
Defined in: rspec-mocks/lib/rspec/mocks/matchers/receive.rb

Overview

::RSpec::Mocks::MessageExpectation objects are able to describe themselves in detail. We use this as a fall back when a ::RSpec::Mocks::MessageExpectation is not available.

Class Method Summary

Instance Method Summary

  • #description_for(verb) Internal use only

    This is much simpler for the any_instance case than what the user may want, but I’m not up for putting a bunch of effort into full descriptions for any_instance expectations at this point :(.

Instance Method Details

#description_for(verb)

This is much simpler for the any_instance case than what the user may want, but I’m not up for putting a bunch of effort into full descriptions for any_instance expectations at this point :(.

[ GitHub ]

  
# File 'rspec-mocks/lib/rspec/mocks/matchers/receive.rb', line 127

def description_for(verb)
  "#{verb} #{@message}"
end