[LRUG] Expected response to be a <:redirect>, but was <200> when using should_redirect_to
Tim Cowlishaw
tim at timcowlishaw.co.uk
Mon Jul 26 10:08:20 PDT 2010
On 26 Jul 2010, at 18:05, Riccardo Tacconi wrote:
>
> Expected response to be a <:redirect>, but was <200>
>
> But why? That method really return a 302 (redirrect) method. Do I miss something?
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.
Cheers,
Tim
More information about the Chat
mailing list