Installing RSpec requires changing generators in config/applicaton.rb?

All the RSpec installation instructions I’ve seen (except the RSpec
Book) say something like:

Set up the RSpec generator by adding the following to config/
applicaton.rb:
config.generators do |g|
g.test_framework :rspec
end

Or

Create a generator configuration file config/initializers/
generators.rb containing:
Rails.application.config.generators do |g|
g.test_framework = :rspec
end

Are either of these necessary? It seems when I leave out this step
that running
“rails generate controller home index”
creates all the necessary files in the rspec directory.

Was there a recent improvement that eliminates the need to set up
rspec in config.generators? Or am I missing something?

I’m using Rails 3.0.5 and rspec-rails 2.5.

– Daniel

On Mar 1, 2011, at 2:59 PM, Daniel Kehoe wrote:

Was there a recent improvement that eliminates the need to set up
rspec in config.generators? Or am I missing something?

I’m using Rails 3.0.5 and rspec-rails 2.5.

That hasn’t been necessary for a long, long time. Are you seeing this
recommendation in rspec’s docs? Or in miscellaneous blog
posts/wikis/etc?