Topic: Testing with cookies
I'm trying to test my "remember me" function. It sets a cookie so that we someone comes back they are automatically logged in. The problem is that it doesn't look the the cookie is saved when called from a functional test. Look at this...
cookies[:auth_token] = { :value => valid_user.remember_token , :expires => valid_user.remember_token_expires }
puts "cookie in controller: " + cookies[:auth_token]That's in the controller, and it errors out because cookies[:auth_token] is nil on the second line.
Has anyone already solved this problem?
Last edited by thabenksta (2006-07-19 13:53:04)