Re: [rspec-users] Controller Specs - undefined local variable or method 'app'

2011-02-12 Thread Doug Bryant
nce of your rack-compatible application. > > On Saturday, February 12, 2011, Doug Bryant > wrote: > > On one of my projects using rspec 2.5 & rails 3.0.4, I recently moved > from postgres to mongo and am using mongoid as the persistence library. > > I ported all the models ove

[rspec-users] Controller Specs - undefined local variable or method 'app'

2011-02-11 Thread Doug Bryant
On one of my projects using rspec 2.5 & rails 3.0.4, I recently moved from postgres to mongo and am using mongoid as the persistence library. I ported all the models over to the mongoid way of doing things and now have all my models passing the tests. None of the controller test work any more. T

Re: [rspec-users] Fixtures not loading when running full test suite

2011-01-27 Thread Doug Bryant
I'm currently running into the same issue and can find very little about it on the interwebs - i.e. an individual test run with `script/spec` works fine but the same test without any code changes fails when run as part of the suite via `rake spec` This issue seemed to start out of the blue. Some

[rspec-users] mocking successive return values

2008-03-05 Thread Doug Bryant
I'm having a problems mocking successive return values. I don't know if I'm doing something wrong or if this is a limitation of rspec mocks. Any ideas of what I may be doing wrong? I'm trying to test the generate_quote_number method. It generates a quote number, looks to see if it is in

Re: [rspec-users] mocking successive return values

2008-03-05 Thread Doug Bryant
Thanks Ben. I appreciate it. Doug On Wed, Mar 5, 2008 at 1:25 PM, Ben Mabey <[EMAIL PROTECTED]> wrote: > Doug Bryant wrote: > > I'm having a problems mocking successive return values. I don't know > > if I'm doing something wrong or if this is a limitati

[rspec-users] mocking successive return values

2008-03-05 Thread Doug Bryant
I'm having a problems mocking successive return values. I don't know if I'm doing something wrong or if this is a limitation of rspec mocks. Any ideas of what I may be doing wrong? I'm trying to test the generate_quote_number method. It generates a quote number, looks to see if it is in the db