Method: ObjectProtocol::MessageExpectation#to_rspec_matcher_failure_message_lines
- Defined in:
- lib/object_protocol/message_expectation.rb
#to_rspec_matcher_failure_message_lines ⇒ Object
37 38 39 40 41 42 43 44 45 |
# File 'lib/object_protocol/message_expectation.rb', line 37 def fragment_base = "#{sender.name}.sends(:#{}).to(#{receiver.name})" if arguments_specified? ["#{fragment_base}.with(#{arguments})"] else [fragment_base] end end |