
Redirects in Rails 2.3 not being followed by Webrat
Reported by Kieran P | February 17th, 2009 @ 05:52 PM
Have upgraded our app from Rails 2.1 to Rails 2.3 RC1 and the biggest issue so far has been nearly our entire webrat suite failing because of an issue.
The redirects in 2.3 return "You are being redirected" as the body then redirect pretty much instantly, which works in browsers, but webrat, instead of following the redirect, returns the page body that has that "You are being redirected" text.
i.e. the page body being returned by webrat via 'response.body' is not the page body of the page once redirects finish.
Hope that makes sense.
Comments and changes to this ticket
-
-
Mutwin Kraus April 25th, 2009 @ 03:31 AM
I pushed a fix to my fork in this commit: http://github.com/mutle/webrat/c...
I'm using header("Host", "host.name") to set the request hostname. This doesn't require the use of url instead of path in visit or the redirects.
-
gaffo May 10th, 2009 @ 10:27 PM
- State changed from new to open
Is this still an issue in the released version of rails 2.3? there were some major issues with redirects, flash, and templates in some of the 2.3 pre releases and edge versions.
-
gaffo June 15th, 2009 @ 12:49 AM
- State changed from open to awaiting-merge
I'm going to merge this one in with #207 (https://webrat.lighthouseapp.com/projects/10503/tickets/207-make-in...) as I think this will solve the issue. Please write here if I'm completely off base.
-
gaffo June 15th, 2009 @ 11:26 PM
- Assigned user set to Bryan Helmkamp
This looks like a good patch. One user confirmed this in irc recently.
-
Bryan Helmkamp February 17th, 2009 @ 05:52 PM
- State changed from awaiting-merge to resolved
(from [9b5b9fad621090dd4816c08a65657e462ec4ff52]) Added attribution [#168 state:resolved] http://github.com/brynary/webrat/commit/9b5b9fad621090dd4816c08a656...
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Ruby Acceptance Testing for Web applications.
People watching this ticket
Referenced by
-
168 Redirects in Rails 2.3 not being followed by Webrat (from [9b5b9fad621090dd4816c08a65657e462ec4ff52]) Added a...