On Wed, Sep 24, 2008 at 9:21 AM, Matt Wynne <[EMAIL PROTECTED]> wrote:
> On 24 Sep 2008, at 14:38, David Chelimsky wrote:
>
>> On Wed, Sep 24, 2008 at 8:23 AM, Matt Wynne <[EMAIL PROTECTED]> wrote:
>>>
>>> On 24 Sep 2008, at 13:35, Carlos Rafael Belizón Ibáñez wrote:
>>>
>>>> If you create a mock object using mock_model(), or mock(), you have to
>>>> stub
>>>
>>> or mock absolutely all the interactions it will have with the class under
>>> test.
>>
>> Or you could use mock_model(..).as_null_object (assuming you have the
>> current HEAD).
>
> This is the new record / playback stuff eh?
No relation. It's just a method that lets you say
mock('foo').as_null_object instead of mock('foo', :null_object =>
true).
_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users