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

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Modifies expectation so that when the expected method is called, it yields multiple times per invocation with the specified <tt>parameter_groups</tt>.
- !ruby/struct:SM::Flow::VERB 
  body: "  object = mock()\n  object.expects(:expected_method).multiple_yields(['result_1', 'result_2'], ['result_3'])\n  yielded_values = []\n  object.expected_method { |*values| yielded_values &lt;&lt; values }\n  yielded_values # =&gt; [['result_1', 'result_2'], ['result_3]]\n"
- !ruby/struct:SM::Flow::P 
  body: May be called multiple times on the same expectation for consecutive invocations. Also see Expectation#then.
- !ruby/struct:SM::Flow::VERB 
  body: "  object = mock()\n  object.stubs(:expected_method).multiple_yields([1, 2], [3]).then.multiple_yields([4], [5, 6])\n  yielded_values_from_first_invocation = []\n  yielded_values_from_second_invocation = []\n  object.expected_method { |*values| yielded_values_from_first_invocation &lt;&lt; values } # first invocation\n  object.expected_method { |*values| yielded_values_from_second_invocation &lt;&lt; values } # second invocation\n  yielded_values_from_first_invocation # =&gt; [[1, 2], [3]]\n  yielded_values_from_second_invocation # =&gt; [[4], [5, 6]]\n"
full_name: Mocha::Expectation#multiple_yields
is_singleton: false
name: multiple_yields
params: " multiple_yields(*parameter_groups) -> expectation\n"
visibility: public
