[rspec-users] Problem testing method
Matt Wynne
matt at mattwynne.net
Wed Sep 24 10:21:01 EDT 2008
On 24 Sep 2008, at 14:38, David Chelimsky wrote:
> On Wed, Sep 24, 2008 at 8:23 AM, Matt Wynne <matt at mattwynne.net>
> 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?
cheers,
Matt
----
http://blog.mattwynne.net
http://songkick.com
In case you wondered: The opinions expressed in this email are my own
and do not necessarily reflect the views of any former, current or
future employers of mine.
More information about the rspec-users
mailing list