In my functional test suite, I have two tests. Each is meant to test the
redirection that "verify :method => :post" will do when I trigger
the
respective actions with a GET instead of a POST.
In both tests, I have a follow_redirect.
If both tests are present (or more precisely, if the follow_redirect is
present in the alphabetically-earlier one), the second test will fail at
the assert_redirected_to. The redirected URL is a loopback to the
action''s URL. That redirection might have come from ssl_required,
though
the original request includes HTTPS.
So anyway, if I do a follow_redirect after a get in a functional test,
redirections following gets''es in later tests are screwed up.
Is this known?
Is there anything I can do about it?
— F
ruby 1.8.6 (2008-03-03 patchlevel 114) [universal-darwin9.0]
Rails 1.2.6
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---