Could not find generator rspec:install (q2)

Add to your Gemfile:

group :development, :test do
  gem 'rspec-rails'
end

and run bundle install

make sure that it is in both the :development and :test blocks. If you inadvertently put it only in the :test block, it will give the error above (that’s because by default you’re running in the development environment and rspec ins’t available to that environment).

rails generate rspec:install should then run as expected.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)