0

I'm running ruby 1.8.7 and rails 3.0.3. And I can't get rspec installed.

My Gemfile contains the following:

group :test, :development do
  gem "rspec-rails", "~> 2.4"
end

But I there is no rspec:install generator after bundle install. I've tried the various answers around the net, setting rspec-rails to the 2.0.0.beta.22, 2.3.1, 2.3.0 and so on, but nothing seems to work.

Does anyone have any ideas on how to get the rspec:install generator?

Thanks

Lars

Lars Steen
  • 741
  • 1
  • 10
  • 15
  • Maybe it can't find rspec? Does `rspec -v` work? – zetetic Jan 19 '11 at 22:15
  • Does this answer your question? [Could not find generator rspec:install (q2)](https://stackoverflow.com/questions/3426406/could-not-find-generator-rspecinstall-q2) – Jason FB Nov 23 '21 at 01:17

3 Answers3

1

Ensure you have RSpec installed within your development environment. Have a look here for the correct way to get RSpec installed and running.

https://github.com/dchelimsky/rspec/wiki/rails

RamC
  • 1,287
  • 1
  • 11
  • 15
ChuckJHardy
  • 6,956
  • 6
  • 35
  • 39
0

Also check rspec-rails github page for Rails 3.

Justin D.
  • 4,946
  • 5
  • 36
  • 69
0

update bundler, gem update should get it.

agento2
  • 13
  • 3