RailsTies doesn''t have any tests, which is unfortunate. If
you''d like
to write tests for your generator (and I''d encourage it), you probably
want to mock out whatever is written to and look for the correct
content. I hear good things about FlexMock.
Kev
On 6/24/06, Brad Ediger <brad@bradediger.com>
wrote:> I submitted this patch, which fixes a minor MigrationGenerator issue,
> about a month ago:
>
> http://dev.rubyonrails.org/ticket/5197
>
> I was trying to be a good Rails / Ruby citizen and write tests for it,
> but I couldn''t find any tests for the generators. Are the
generators
> tested right now? If I should have written tests, then how?
>
> Thanks!
> --be
>
>
> _______________________________________________
> Rails-core mailing list
> Rails-core@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails-core
>
>
>
>
--
Kevin Clark
http://glu.ttono.us