This project is archived and is in readonly mode.

#5111 new
David Chelimsky

Hide test_unit generators when other frameworks are assigned as test_framework

Reported by David Chelimsky | July 14th, 2010 @ 01:25 PM

Given this in a Railtie:

config.generators.test_framework   :rspec

When I run script/rails generate
Then I get the following output

...
Please choose a generator below.

Rails:
  ...

Rspec:
  rspec:install

TestUnit:
  test_unit:controller
  test_unit:helper
  test_unit:integration
  test_unit:mailer
  test_unit:model
  test_unit:observer
  test_unit:performance
  test_unit:plugin
  test_unit:scaffold

It would be nice if the test_unit:xxx generators were not visible here.

Need to make sure test_unit:integration DOES show up, however, if there is no integration_tool specified in a Railtie.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Tickets have moved to Github

The new ticket tracker is available at https://github.com/rails/rails/issues

Shared Ticket Bins

Pages