--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Matches any object that responds to <tt>message</tt> with <tt>result</tt>. To put it another way, it tests the quack, not the duck.
- !ruby/struct:SM::Flow::VERB 
  body: "  object = mock()\n  object.expects(:method_1).with(responds_with(:upcase, &quot;FOO&quot;))\n  object.method_1(&quot;foo&quot;)\n  # no error raised, because &quot;foo&quot;.upcase == &quot;FOO&quot;\n\n  object = mock()\n  object.expects(:method_1).with(responds_with(:upcase, &quot;BAR&quot;))\n  object.method_1(&quot;foo&quot;)\n  # error raised, because &quot;foo&quot;.upcase != &quot;BAR&quot;\n"
full_name: Mocha::ParameterMatchers#responds_with
is_singleton: false
name: responds_with
params: " responds_with(message, result) -> parameter_matcher\n"
visibility: public
