[mocha-developer] Stubbing ActiveRecord Models gets very difficult with instance methods

James Mead jamesmead44 at gmail.com
Thu Jan 4 10:28:29 EST 2007


I agree with Francois. I think you are trying to test too much in your test.

Francois has suggested tests which test only the check_stat method.

You could also have a separate test for the find_stats method in which you
could stub out the find_by_table_name method.

Does that make sense?
-- 
James.
http://blog.floehopper.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/mocha-developer/attachments/20070104/a9135442/attachment.html 


More information about the mocha-developer mailing list