If this is the wrong forum for this type of question please let me
know...I don't want to ruffle any feathers...
I've been teaching myself RSpec and quite enjoying the 'new'
book...but as I try to put it into practice I get tripped up. Now,
this may not be RSpec's fault. I'm also relatively new to
Long post but prolly simple if you understand Rails, RSpec &
differences between webrat & capybara.
I'm hoping someone can take a few moments to help me get a better
understanding of my environment. I have a somewhat intermediate
understanding of Ruby/Rails but a beginner's understanding of RSpec.
I can't seem to figure out how to set a cookie for a Request spec? Tried:
before(:each) do
@user = Fabricate(:user)
request.cookies[:id_token] = @user.id
end
but that gives a NoMethodError errors: undefined method `cookies' for
nil:NilClass
How does one run request specs when cookies need