Re: [rspec-users] new syntax question and mocking HTTP_AUTHORIZATION

2010-10-21 Thread oren
works! thanks so much for not only solving it but also mentioning rack- test. I see the get method here: http://github.com/brynary/rack-test/blob/master/lib/rack/test.rb but it's not clear how to use that (I guess it depends on your experience), I wish there was a usage/sample section.. On Oct

Re: [rspec-users] new syntax question and mocking HTTP_AUTHORIZATION

2010-10-21 Thread Zach Dennis
On Wed, Oct 20, 2010 at 11:19 PM, David Chelimsky wrote: > On Oct 20, 2010, at 9:56 PM, oren wrote: > > > I am specing a sinatra app. > > > > it "should send non-valid user to /login" do > > get '/' > > last_response.headers['Location'].should == '/reports' > > end > > > > this is working fine b

Re: [rspec-users] new syntax question and mocking HTTP_AUTHORIZATION

2010-10-20 Thread David Chelimsky
On Oct 20, 2010, at 9:56 PM, oren wrote: > I am specing a sinatra app. > > it "should send non-valid user to /login" do > get '/' > last_response.headers['Location'].should == '/reports' > end > > this is working fine but I would like to know how to convert it to the > new syntax or if there i