[rspec-users] When to stub_model?
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...
More information about the rspec-users