Alex Rivera | Logout

Couldn't find 'rspec' generator

Asked 2008-11-07T17:42:05.027
17

I'm trying to install RSpec as a gem after having it installed as a plugin. I've gone ahead and followed the directions found here http://github.com/dchelimsky/rspec-rails/wikis for the section titled rspec and rspec-rails gems. When I run ruby script/generate rspec, I get the error Couldn't find 'rspec' generator. Do only the plugins work? If so, why do they even offer the gems for rspec and rspec-rails? I'm running a frozen copy of Rails 2.1.2, and the version of rpsec and rspec-rails I'm using is the newest for today (Nov 7, 2008) 1.1.11.

EDIT Nov 12, 2008 I have both the rspec and rspec-rails gems installed. I've unpacked the gems into the vender/gems folder. Both are version 1.1.11.

Edit
Report

2 Answers

-1

You might need to run bundle exec :

bundle exec rails g rspec:install
answered 2012-05-04T12:52:50.040
-2

You'll need to do

sudo gem install cucumber-rails
answered 2010-03-15T04:55:04.983

Your Answer