[mocha-developer] Stubbing ActiveRecord Models gets very difficult with instance methods
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?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the mocha-developer