Re: [rspec-users] Strange mock_model behaviour with ActiveResource model

2007-10-18 Thread James Hughes
Never mind. User error. jh On 10/17/07, James Hughes <[EMAIL PROTECTED]> wrote: > On 10/12/07, Bryan Ray <[EMAIL PROTECTED]> wrote: > > Can you post your entire: > > > > it "should assign the found fa_codes for the view" block? as well as > > your fa_code controller? perhaps pastie it and link. >

Re: [rspec-users] Strange mock_model behaviour with ActiveResource model

2007-10-17 Thread James Hughes
On 10/12/07, Bryan Ray <[EMAIL PROTECTED]> wrote: > Can you post your entire: > > it "should assign the found fa_codes for the view" block? as well as > your fa_code controller? perhaps pastie it and link. > > That appears to be the spec failing. Hi Brian, It's actually all of the it blocks insid

Re: [rspec-users] Strange mock_model behaviour with ActiveResource model

2007-10-13 Thread Bryan Ray
Can you post your entire: it "should assign the found fa_codes for the view" block? as well as your fa_code controller? perhaps pastie it and link. That appears to be the spec failing. James Hughes wrote: > Hi, > > I have two models in an app that inherit from ActiveResource::Base. > The scaffo

[rspec-users] Strange mock_model behaviour with ActiveResource model

2007-10-12 Thread James Hughes
Hi, I have two models in an app that inherit from ActiveResource::Base. The scaffold controller tests for one of the models works fine, but the other one dies when calling mock_model in the "handling GET /fa_codes" spec: Specifically, the call to mock model here: before do @fa_code = mock_m