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

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

    Always remember to run the rspec or the bundle exec rspec from the root of your project. Something like:

    bundle exec rspec spec/features/file_test_spec.rb
    

提交回复
热议问题