Anyone have experience writing custom Rails generators? Do you test them?

I would like to experiment with writing a my own generator that I
might want to eventually bundle into it's own gem. What I would like
to know if it's feasible or considered best practice to write specs/
tests for your generator, and if so, any tips or examples you can
point me to?

You certainly can test them, for example here are the specs for the
rspec generators: https://github.com/rspec/rspec-rails/tree/master/spec/generators

Fred

Of course! It's considered best practice to write spec/tests for
*everything*! :slight_smile:

-Dave

Cool, thanks a lot for the examples, I'm amazed by how clean and
readable these specs are.