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
_
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
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.
>
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