[rspec-users] quick question on rspec-rails for Rails 3: how to stub AR class methods like :find?

2011-11-08 Thread Lille
Hey, I recently switched to Rails 3(.1) and, using rspec-rails 2.6.1, I find can no longer stub AR class methods, like :find. So, where Comment is an AR class, I can't do this: Comment.should_receive(:find).and_return(... What is the new way of doing this, please? Lille _

Re: [rspec-users] Setting expections on chained calls

2011-11-08 Thread Justin Ko
On Nov 8, 2011, at 3:29 AM, Rob Aldred wrote: > On Tue, Nov 08, 2011 at 12:36:22AM +, Justin Ko wrote: >> >> On Nov 7, 2011, at 4:13 PM, Matt Wynne wrote: >> >>> >>> On 7 Nov 2011, at 18:37, Justin Ko wrote: >>> On Nov 2, 2011, at 12:01 PM, Rob Aldred wrote: > > I'm pr

Re: [rspec-users] Setting expections on chained calls

2011-11-08 Thread Rob Aldred
On Tue, Nov 08, 2011 at 12:36:22AM +, Justin Ko wrote: > > On Nov 7, 2011, at 4:13 PM, Matt Wynne wrote: > > > > > On 7 Nov 2011, at 18:37, Justin Ko wrote: > > > >> On Nov 2, 2011, at 12:01 PM, Rob Aldred wrote: > >> > >>> > >>> I'm pretty sure this has probably been discussed before. >

[rspec-users] Invitation to connect on LinkedIn

2011-11-08 Thread Robert Dober
I'd like to add you to my professional network on LinkedIn. - Robert Robert Dober Developpeur Ruby On Rails et Javascript. at Up & Net Paris Area, France Confirm that you know Robert Dober: https://www.linkedin.com/e/c0fwx7-guqjyirk-5c/isd/4834432047/7mvOezRl/?hs=false&tok=2cXzLXCJlCUkY1 -- Y