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 through
$ rails g rspec:install
$ rake db:test:prepare
WARNING: db:test:prepare is deprecated. The Rails test helper now maintains your test
schema automatically, see the release notes for details.
rake db:schema:load RAILS_ENV=test
$ rspec spec
kernel_require.rb:55:in `require': cannot load such file -- rails_helper (LoadError)
There is some problem with rspec V3. But in your case you are using V2.
Other description find here https://teamtreehouse.com/forum/problem-with-rspec
For V3 :
If someone using rspec V3 then similar error occurs when generator not run. So before trying anything run generator.
rails generate rspec:install
If you are getting a huge list of warning on your console. Then you need to remove