Came across this error when trying out the ruby on rails tutorial section with rspec on a windows platform using jruby 1.6:
c:\\rails_projects\\sample_app>
When you execute 'rails generate rspec:install'
, if you see 'Could not find generator rspec:install'
error message, add gem 'rspec-rails'
within :developnent
, :test
group in your project Gemfile
as shown below.
group :development, :test do
gem 'rspec-rails'
end
After this, execute 'bundle install'
and continue with 'rails generate rspec:install'