Article

Responsible Generators Plugin

Posted by Blake Watters.

PublicCategorized as Software Development.

Tagged with plugins, rails

Alright, here is yet another plugin I’ve had lying around for some time. This plugin replaces the default Rails generator for controllers with a new version that generates a test case for the helper when the controller is generated.

Additionally, it provides a new generator for creating a standalone helper with a test case.

Plugin is available at: https://secure.near-time.com/svn/plugins/trunk/responsible_generators/

Usage:


./script/generate controller foo
Creates… app/controllers/foo_controller.rb app/helpers/foo_helper.rb test/functional/foo_controller_test.rb test/helpers/foo_helper_test.rb

./script/generate helper foo
Creates… app/helpers/foo_helper.rb test/helpers/foo_helper_test.rb


Arrow_down Hide comments

Powered by Near-TimeTerms of Services | Privacy Policy | Security Policy |