Hi everyone,<br><br>I&#39;m trying to test the shorthand way to push objects into an array. My controller looks like:<br><br>current_user.foos &lt;&lt; @foo<br><br>and I keep getting an error like Mock &#39;foos&#39; received unexpected message :&lt;&lt; with &lt;FooClass&gt;
<br><br>does anyone have a good solution for this?<br><br>I tried controller.send(<span class="sy">:current_user</span>).labels.stub!(<span class="sy">:&lt;&lt;</span>).and_return([]) and that didn&#39;t work.<br><br>TIA!
<br>-Lance<br>