If you''ve written any new methods, you would have to test them
yourself; however, if you want to ensure that the old functionality
is still there, I have an idea: instead of making a subclass, just re-
open ActiveRecord::Base and override the relevant methods with
yours. Then run the AR test units as normal.
Duane Johnson
(canadaduane)
On Oct 1, 2005, at 6:31 AM, Alan Bullock wrote:
> if I sub-class AR::Base, and then over-ride one of the methods, how
> do I go
> about testing that my change doesn''t break any of the other
> AR::Base methods
> which might rely on it? Ideally I''d like to run the AR unit tests
> from the
> rails source on my sub-class, but I''m not sure how to or even if
> that''s te
> right approach.
>
> thanks for any input
> alan
>
>
>
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>