[rspec-users] Cookie value set in spec, but controller can't read it

Marko Anastasov marko at renderedtext.com
Wed Jan 5 12:54:43 EST 2011


Hello,

I set a value in controller spec using @request.cookies:
https://gist.github.com/371356ba0a19666fd3b5

but when the controller reads it, it's nil somehow, as this screenshot
from the debugger shows:
http://dl.dropbox.com/u/830772/p/Selection_033.jpeg

This does not occur in development environment. I'm using RSpec 2.4
and Rails 3.

Does someone have an idea what I am doing wrong / how to solve this?


More information about the rspec-users mailing list