Re: [rspec-users] Rspec-Rails setting a header in stories?

2008-06-24 Thread Matthew Rudy Jacobs
David Chelimsky wrote: > On Jun 24, 2008, at 10:22 AM, Matthew Rudy Jacobs wrote: > >> Hi there, >> >> For my api controllers I need the following; >> request.ssl? == true >> and >> an api key "request.env['HTTP_OUR_API_KEY']" >>

Re: [rspec-users] Rspec-Rails setting a header in stories?

2008-06-24 Thread Matthew Rudy Jacobs
David Chelimsky wrote: > On Jun 24, 2008, at 10:22 AM, Matthew Rudy Jacobs wrote: > >> Hi there, >> >> For my api controllers I need the following; >> request.ssl? == true >> and >> an api key "request.env['HTTP_OUR_API_KEY']" >>

[rspec-users] Rspec-Rails setting a header in stories?

2008-06-24 Thread Matthew Rudy Jacobs
Hi there, For my api controllers I need the following; request.ssl? == true and an api key "request.env['HTTP_OUR_API_KEY']" In my spec/controllers I just stub out the required code but in stories I don't want any stubs. I've tried changing the .env of the existing request, but this doesn't work