Topic: returned cookies are arrays in functional tests

Hi all,

having trouble accessing the returned cookies in my functional tests. First thing is that I cannot access it by cookies[:name] but rather have to do it by cookies["name"]. Not sure why this is but its no biggie.

The bigger head scrather though is why cookies["name"].value always returns an array even though the data going into that array from the controller is a simple string "testvalue"

Any thoughts or answers greatly appreciated

Thanks
Garrett

Re: returned cookies are arrays in functional tests

Please don't cross post as mentioned in the guidelines.

Railscasts - Free Ruby on Rails Screencasts

Re: returned cookies are arrays in functional tests

sorry - i put it in beginners to start with then found a better place for it

Re: returned cookies are arrays in functional tests

Let's just stick with the one that's already getting replies. smile Closed.

Josh Catone helps run this place
Rails Forum - Rails Jobs