[rspec-users] When to stub_model?

Lee Longmore lee_longmore at yahoo.co.uk
Tue May 19 09:53:56 EDT 2009

I am trying to specify a controller with RSpec for the first time.

I have been using mock_model to date but, given that the models are fully implemented, I am wondering if I should be using stub_model.

Based on what I have read, I am struggling to understand the advantages that stub_model over mock_model might provide.

Should I be using stub_model and if so, why?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20090519/03f2cbdb/attachment.html>

More information about the rspec-users mailing list