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 <[EMAIL PROTECTED]> 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" <[EMAIL PROTECTED]> 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 > > [email protected] > > http://rubyforge.org/mailman/listinfo/rspec-users > > > _______________________________________________ > rspec-users mailing list > [email protected] > http://rubyforge.org/mailman/listinfo/rspec-users > _______________________________________________ rspec-users mailing list [email protected] http://rubyforge.org/mailman/listinfo/rspec-users
