RobinBrouwer/exhibit — pull request #1 by philnash (2012-07-17 17:24:45+00:00)
Title: Cleans up generation of test templates.

Previously, unless you passed the option --testunit, presenter_spec was always created.
This commit uses hook_for to hook to the relevant test framework and generate based on
that. It also cleans up a lot of the other code by inheriting from Rails::Generators::NamedBase
instead of just Base, which gives you skip_namespace, singular_name and class_name for free.
Test templates that are supported are test_unit, rspec and shoulda.