I agree with Francois. I think you are trying to test too much in your test.<br><br>Francois has suggested tests which test only the check_stat method.<br><br>You could also have a separate test for the find_stats method in which you could stub out the find_by_table_name method.
<br><br>Does that make sense?<br>-- <br>James.<br><a href="http://blog.floehopper.org">http://blog.floehopper.org</a>