in 'require': no such file to load — spec_helper

前端 未结 5 1158
醉话见心
醉话见心 2020-12-29 03:04

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>         


        
5条回答
  •  离开以前
    2020-12-29 03:28

    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'

提交回复
热议问题