[rspec-users] Stubbing out required associated models
court3nay at gmail.com
Thu Nov 15 12:46:51 EST 2007
of course, you do both. you need to unit test in isolation, as well as
integration test the stack.
On Nov 15, 2007 5:44 AM, Matthew Lins <mlins at webinforem.com> wrote:
> 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
> rspec-users mailing list
> rspec-users at rubyforge.org
More information about the rspec-users