2009/10/21 Alexander Seidl <span dir="ltr">&lt;<a href="mailto:lists@ruby-forum.com">lists@ruby-forum.com</a>&gt;</span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">Alexander Seidl wrote:<br>
&gt; i call current_user in the index-method, but the test fails and says:<br>
&gt; &quot;#&lt;User::CategoriesController:0xb7439484&gt; expected :current_user with<br>
&gt; (any args) once, but received it 0 times&quot;<br>
&gt;<br>
&gt; Why?<br>
<br></div></blockquote><div><br></div><div>Try putting line 7 before line 6.</div><div><br></div><div>Cheers,</div><div>Ben</div></div>