[rspec-users] Installing rspec 2 for Rails 3

Marko Anastasov marko at renderedtext.com
Wed Jan 12 05:55:22 EST 2011

On Wed, Jan 12, 2011 at 09:19, Amit Kulkarni <lists at ruby-forum.com> wrote:
> Hi,
> I have successfully installed rspec 2 for Rails 3 by visiting the
> following  link
> http://lindsaar.net/2010/4/14/installing_rspec_for_rails_3
> In this post it is mentioned taht when i do "rails g rspec:install"
> then it should install
> exist  lib
>      create  lib/tasks/rspec.rake
>       exist  config/initializers
>      create  config/initializers/rspec_generator.rb
>       exist  spec
>      create  spec/spec_helper.rb
>      create  autotest
>      create  autotest/discover.rb
> but when i run the command then it creates only .rspec,spec/spec_helper
> Is there something wrong with the command?Or is there any other way of
> installing rspec.
> Also please suggest good link for starting rspec 2 for rails 3

That blog post references an old version of rspec-rails. AFAIK the
current does not generate some of the files it mentiones
(lib/tasks/rspec.rake, config/initializers/rspec_generator.rb); also
be aware that autotest and autotest-rails are optional.

I'd suggest that you always look at the project's page on github first:

More information about the rspec-users mailing list