Hiding test_unit Generators?

In a recent blog post, David wrote:

Because RSpec is the test framework of record, Rails doesn’t know to
hide the test_unit generators. If you want to hide them, just add this
to one of your config files:

Rails::Generators.hide_namespace("test_unit")

Where exactly should this statement go?? I tried a number of
alternatives and wasn’t able to make it work.

tx, Andy

On Jul 13, 2010, at 8:49 PM, Arco wrote:

In a recent blog post, David wrote:

Because RSpec is the test framework of record, Rails doesn’t know to
hide the test_unit generators. If you want to hide them, just add this
to one of your config files:

Rails::Generators.hide_namespace(“test_unit”)

Where exactly should this statement go?? I tried a number of
alternatives and wasn’t able to make it work.

Turns out this doesn’t work as expected. I filed
http://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/5111
and am told it will be addressed in Rails proper.

I’ll update the blog post when I have more solid information.

Sorry for the confusion.

Cheers,
David

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs