[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


I set a value in controller spec using @request.cookies:

but when the controller reads it, it's nil somehow, as this screenshot
from the debugger shows:

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