Error when trying to run rspec: `require': cannot load such file — rails_helper (LoadError)

后端 未结 13 739
青春惊慌失措
青春惊慌失措 2020-12-13 03:13

I am trying to run rspec for Ruby on Rails. I am running Rails 4.1.1. I have installed the gem, have established a spec folder with some tests. I have created a directory

13条回答
  •  抹茶落季
    2020-12-13 04:08

    I actually just had this error on rails 4 with rspec 3, but in my case I forgot to run the generator:

    rails generate rspec:install
    

    Also I had to remove warnings from .rspec, as stated by one of rpsec developers

提交回复
热议问题