Running a functional test on FooController that does
‘follow_redirect’, I get 'Can’t follow redirects outside current
controller (from “foo” to “foo”). On further investigation, it turns
out that :foo != ‘foo’ around line 401 of actionpack/lib/
action_controller/test_process.rb. Changing the line:
if redirected_controller && redirected_controller !=
@controller.controller_name
to
if redirected_controller && redirected_controller.to_s !=
@controller.controller_name.to_s
fixes the problem. Has anyone else hit this? The method in question is
just doing ‘redirect_to :action=>:someaction’.
Gwyn.