<br><br><div class="gmail_quote">On Wed, Oct 21, 2009 at 7:19 AM, Alexander Seidl <span dir="ltr"><<a href="mailto:lists@ruby-forum.com">lists@ruby-forum.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
David Chelimsky wrote:<br>
> [...]<br>
<div class="im">> Please quote at least the relevant part of the previous email when you<br>
> respond<br>
</div>> [...]<br>
yes ok, i'll keep that in mind.<br>
<div class="im"><br>
> If you reverse lines 6 and 7 on <a href="http://pastie.org/663143" target="_blank">http://pastie.org/663143</a>, the example<br>
> _should_ pass, so I'm a bit mystified.<br>
</div>I changed this two lines. Please have a look at the updated pastie:<br>
<a href="http://pastie.org/663143" target="_blank">http://pastie.org/663143</a>. The test still failes. But it shouldn't!<br>
Because current_user IS obviously called by the controller.<br>
<div class="im"><br>
> That said, why are you specifying<br>
> that current_user is called rather than something about the response? Or<br>
> is<br>
> this just an excerpt you're using for demonstration?<br>
<br>
</div>This is no real test or controller, i would write or use. But i found<br>
out that this is the root of all my problems with rspec. So i boiled it<br>
down to this simple example.<br></blockquote><div><br></div><div>Rails version?</div><div>Ruby version?</div><div>OS?</div><div>etc</div></div>