# How to test a generator for a plugin

**URL:** <https://www.ruby-forum.com/t/how-to-test-a-generator-for-a-plugin/155104>\
**Category:** Rails\
**Created:** [December 8, 2008, 6:55am UTC](https://www.ruby-forum.com/t/how-to-test-a-generator-for-a-plugin/155104 "2008-12-08T06:55:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![student](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ecc23a/32.png) [@student](https://www.ruby-forum.com/u/student)\
**Post date:** [December 8, 2008, 6:55am UTC](https://www.ruby-forum.com/t/how-to-test-a-generator-for-a-plugin/155104/1 "2008-12-08T06:55:33Z")

</div>

I’m adding a generator to a popular plugin, and the core team has  
sensibly requested that I submit tests for the generator.  
Unfortunately, there seems to be a lot of code tied to railties in the  
rails generator tests. Is there a recommended way to handle this  
situation?

Thanks
