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

John Pywtorak jpywtora at calpoly.edu
Thu Jan 4 22:14:38 EST 2007


James Mead wrote:
> 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
> 

Yes, I think I was testing to much and it makes sense.  I look forward 
to the next release of mocha.

John
http://ruby-talk.blogspot.com




More information about the mocha-developer mailing list