Hi everyone,<br><br>I'm trying to test the shorthand way to push objects into an array. My controller looks like:<br><br>current_user.foos << @foo<br><br>and I keep getting an error like Mock 'foos' received unexpected message :<< with <FooClass>
<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">:<<</span>).and_return([]) and that didn't work.<br><br>TIA!
<br>-Lance<br>