Re: [rspec-users] Spec'ing Rails request.env params

2008-02-14 Thread Mikel Lindsaar
On Fri, Feb 15, 2008 at 2:52 PM, Pat Maddox <[EMAIL PROTECTED]> wrote: > On Thu, Feb 14, 2008 at 6:45 PM, Mikel Lindsaar <[EMAIL PROTECTED]> wrote: > > I have an internal system that has a rails controller action that > > needs to behave differently based on browser type reported by > > reques

Re: [rspec-users] Spec'ing Rails request.env params

2008-02-14 Thread Pat Maddox
On Thu, Feb 14, 2008 at 6:45 PM, Mikel Lindsaar <[EMAIL PROTECTED]> wrote: > I have an internal system that has a rails controller action that > needs to behave differently based on browser type reported by > request.env['HTTP_USER_AGENT'] > > But I can't find a way to stub! mock or set this set

[rspec-users] Spec'ing Rails request.env params

2008-02-14 Thread Mikel Lindsaar
I have an internal system that has a rails controller action that needs to behave differently based on browser type reported by request.env['HTTP_USER_AGENT'] But I can't find a way to stub! mock or set this setting from within a spec. Looked through Test::Unit and can't find a straight forward w