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

后端 未结 13 749
青春惊慌失措
青春惊慌失措 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:02

    One possibility that worked for me is to make sure you're requiring spec_helper. RubyMine can default require rspec and this can sometimes lead to this error.

提交回复
热议问题