Re: [rspec-users] Rspec - stubbing same class multiple times with different co

2008-07-22 Thread Lori M Olson
Have you tried using should_receive instead of stub! ? Sent from my iPhone On 22-Jul-08, at 8:37 PM, Ry An <[EMAIL PROTECTED]> wrote: Im having a hard time with a rspec controller test im writting, I need to stub! the User.find call twice once to return the owning user and once to return the v

[rspec-users] Baffled by error running rake rspec:models

2008-07-10 Thread Lori M Olson
In my application, we connect to 2 databases, so we make a lot of specs to test this type of interaction. When I run individual model specs using spec, or using rake spec SPEC=xxx, they run *fine*. When I run rake spec:models, all the specs which connect to the 2nd database fail on errors

Re: [rspec-users] Is BDD with RSpec cheaper?

2008-07-07 Thread Lori M Olson
On 7-Jul-08, at 12:25 PM, yitzhakbg wrote: This might be a loaded question on this forum, but here goes: Just had a discussion with a prospective employer, a Ruby On Rails shop. His reaction to BDD development on every project was skeptical, saying something like: "It depends on the projec

Re: [rspec-users] Open source projects using RSpec

2008-07-04 Thread Lori M Olson
Someone on the list was just referencing Typo - http://svn.typosphere.org/typo/trunk/spec/controllers/comments_controller_spec.rb Doesn't look like they use stories, though. On 4-Jul-08, at 4:29 AM, Olivier Dupuis wrote: Hello, Anyone knows of open source projects that uses RSpec and RSpec

Re: [rspec-users] Autotest/RSpec 1.1.4/Rails 2.1 Infinite Loop?

2008-06-19 Thread Lori M Olson
On 19-Jun-08, at 9:10 AM, Kyle Hargraves wrote: The typical cause of these infinite loops is that your test suite updates some file in your project; autotest notices the change and immediately starts again. The solution is to simply add exceptions to your project's .autotest, ignoring any files

Re: [rspec-users] Modules will no longer be automatically included in RSpec version 1.1.4

2008-05-23 Thread Lori M Olson
On 23-May-08, at 4:48 PM, David Chelimsky wrote: On May 23, 2008, at 4:35 PM, Lori M Olson wrote: Can anyone (David?) shed some light on what exactly this warning is complaining about? I started seeing it when I upgraded to Rails 2.1 RC1 and the latest RSpec from git. I'm getting

Re: [rspec-users] Modules will no longer be automatically included in RSpec version 1.1.4

2008-05-23 Thread Lori M Olson
why this is showing up. Pat On 5/23/08, Pat Maddox <[EMAIL PROTECTED]> wrote: It appears when you write a spec like describe FooModule do ... Pat On 5/23/08, Lori M Olson <[EMAIL PROTECTED]> wrote: Can anyone (David?) shed some light on what exactly this warning is complaini

[rspec-users] Modules will no longer be automatically included in RSpec version 1.1.4

2008-05-23 Thread Lori M Olson
Can anyone (David?) shed some light on what exactly this warning is complaining about? I started seeing it when I upgraded to Rails 2.1 RC1 and the latest RSpec from git. I'm getting it in some helper specs that I'm writing. And yes, I am including a module there, to reuse some utility me