Re: [rspec-users] Tests that require a logged in user / session cookie

2011-08-24 Thread Justin Ko
On Wed, Aug 24, 2011 at 6:40 PM, Matthias Siegel wrote: > Hi, > > I'm fairly new to RSpec with Rails and I'm trying to work out how I can > write request specs for resources that require a logged in user. > > I can't get this one to pass: > > > describe "GET /admin/account" do > > it "should have

[rspec-users] Tests that require a logged in user / session cookie

2011-08-24 Thread Matthias Siegel
Hi, I'm fairly new to RSpec with Rails and I'm trying to work out how I can write request specs for resources that require a logged in user. I can't get this one to pass: describe "GET /admin/account" do it "should have a 200 status code when logged in" do post "/login", { :email => @

Re: [rspec-users] slightly confusing error message

2011-08-24 Thread Rob Biedenharn
On Aug 23, 2011, at 5:18 PM, David Chelimsky wrote: On Aug 23, 2011, at 3:26 PM, Rob Biedenharn wrote: On Aug 23, 2011, at 3:16 PM, David Chelimsky wrote: On Aug 23, 2011, at 1:00 PM, Roger Pack wrote: This error message: it 'should' do proc { eval("a=")}.should raise_exception(/Synt