class RSpec::Mocks::Matchers::Receive::DefaultDescribable
MessageExpectation
objects are able to describe themselves in detail. We use this as a fall back when a MessageExpectation
is not available. @private
Public Class Methods
Source
# File lib/rspec/mocks/matchers/receive.rb, line 120 def initialize(message) @message = message end
Public Instance Methods
Source
# File lib/rspec/mocks/matchers/receive.rb, line 127 def description_for(verb) "#{verb} #{@message}" end
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 :(.