[rspec-users] New, clueless, confused...and thinking JQuery+MongoID is breaking my template code examples...

2011-02-18 Thread Meltemi
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

[rspec-users] Newb struggling to get/keep RSpec stable

2011-05-25 Thread Meltemi
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.

[rspec-users] How to set cookies before request spec?

2012-02-16 Thread Meltemi
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