[rspec-users] How to set cookies before request spec?
mdemetrios at gmail.com
Wed Feb 15 21:36:03 EST 2012
I can't seem to figure out how to set a cookie for a Request spec? Tried:
@user = Fabricate(:user)
request.cookies[:id_token] = @user.id
but that gives a NoMethodError errors: undefined method `cookies' for
How does one run request specs when cookies need to be simulated?
*Using Capybara if that matters*
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rspec-users