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

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

    For me, the problem was due to a different "rspec-support" version loaded and activated. I solved by prepending a "bundle exec":

    bundle exec rspec
    

提交回复
热议问题