I do not know if the test sends Accept text/html but I removed respond_to .html and left only the redirect, so it should redirect for every type of content, but I get the same message.<br><br>Thanks,<br><br>Riccardo<br><br>
<div class="gmail_quote">On 26 July 2010 18:08, Tim Cowlishaw <span dir="ltr"><<a href="mailto:tim@timcowlishaw.co.uk">tim@timcowlishaw.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im"><br>
On 26 Jul 2010, at 18:05, Riccardo Tacconi wrote:<br>
<br>
><br>
> Expected response to be a <:redirect>, but was <200><br>
><br>
> But why? That method really return a 302 (redirrect) method. Do I miss something?<br>
<br>
</div>does the request that your test sends have an Accepts header of text/html? Since the redirect is within the respond_to html block, I think it would return 200 for any other content types.<br>
<br>
Cheers,<br>
<br>
Tim<br>
_______________________________________________<br>
Chat mailing list<br>
<a href="mailto:Chat@lists.lrug.org">Chat@lists.lrug.org</a><br>
<a href="http://lists.lrug.org/listinfo.cgi/chat-lrug.org" target="_blank">http://lists.lrug.org/listinfo.cgi/chat-lrug.org</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Riccardo Tacconi<br>Web developer at Wolseley UK <br><br><a href="http://www.linkedin.com/in/riccardotacconi">http://www.linkedin.com/in/riccardotacconi</a><br><a href="http://riccardotacconi.blogspot.com/">http://riccardotacconi.blogspot.com/</a><br>
<a href="http://twitter.com/rtacconi">http://twitter.com/rtacconi</a><br>Linux user: #400461<br>