Re: [rspec-users] Testing update, flash[:error]

2010-11-22 Thread Robert Dober
On Mon, Nov 22, 2010 at 11:26 PM, Paul Nelligan wrote: > the question you need to ask is: is flash[:error] a variable within the > scope that you're working ? ... I suspect that it's not, although I could be > wrong. > with that in mind,  does anyone know of a way of determining which variables >

Re: [rspec-users] Testing update, flash[:error]

2010-11-22 Thread Paul Nelligan
the question you need to ask is: is flash[:error] a variable within the scope that you're working ? ... I suspect that it's not, although I could be wrong. with that in mind, does anyone know of a way of determining which variables are accessible via rspec on each (MVC) layer ?, Is it a simple c

Re: [rspec-users] Testing update, flash[:error]

2010-11-22 Thread Robert Dober
On Mon, Nov 22, 2010 at 4:04 PM, Paul Nelligan wrote: > Hi Andrew > I suspect that flash[:error] is not a valid identifier,  and therefore is > returning a nil value. > Hope this is of use to you. > Paul > > On Mon, Nov 22, 2010 at 2:00 PM, Andrew Davis wrote: >> >> Hello everyone, >> >> I'm tryi

Re: [rspec-users] Testing update, flash[:error]

2010-11-22 Thread Paul Nelligan
Hi Andrew I suspect that flash[:error] is not a valid identifier, and therefore is returning a nil value. Hope this is of use to you. Paul On Mon, Nov 22, 2010 at 2:00 PM, Andrew Davis wrote: > Hello everyone, > > I'm trying to write a failure test for updating a model, but the > flash[:erro