[rspec-users] Stubbing out required associated models

Matthew Lins mlins at webinforem.com
Thu Nov 15 08:44:35 EST 2007


But, that should be okay, since my intent is not to test the associated
models. I have a separate spec file for those models.


On 11/14/07 3:27 PM, "Scott Taylor" <mailing_lists at railsnewbie.com> wrote:

> 
> On Nov 14, 2007, at 4:08 PM, sinclair bain wrote:
> 
>> Matthew,
>> 
>> If your intent is to test the behaviour of your model(s), then yes
>> mocking and
>> stubbing are  a good [_the_] way to go.
> 
> Except, of course, that you are no longer really validating the
> associated models - only your mocks.
> 
> Scott
> 
> 
> 
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users




More information about the rspec-users mailing list