[rspec-users] Problem testing method
dchelimsky at gmail.com
Wed Sep 24 10:22:32 EDT 2008
On Wed, Sep 24, 2008 at 9:21 AM, Matt Wynne <matt at mattwynne.net> wrote:
> 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
>>> or mock absolutely all the interactions it will have with the class under
>> 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 =>
More information about the rspec-users