Using cookies in functional tests
April 18th, 2006
Just had a bit of a problem today. I wanted to test access to some actions, but with cookies. I had to dig pretty deeply before I found what I needed.
When setting your cookies in the test, use CGI::Session, and not a pure Hash:
October 12th, 2007 at 10:25 PM
Thanks! I really needed this. I’m going to throw in also that the key name for the hash can NOT be a symbol while setting the cookie, although you can access it with a symbol later on.