xenoterracide
xenoterracide

Reputation: 16837

How do I follow a redirect with Test:WWW::Mechanize?

I have a form, I submit_form_ok the form codes to /process which returns a redirect to say /. How can I follow the redirect to make sure it's doing the right thing?

Upvotes: 0

Views: 250

Answers (1)

Chas. Owens
Chas. Owens

Reputation: 64919

WWW::Mechanize follows redirects automatically for you. So, unless you want to test that it sent you to /process before it sent you to /, you shouldn't have to care. And, really, if you wind up in the right place with the right page, do you care how you got there?

Upvotes: 2

Related Questions