I just tried to run “rspec” and got this error.
ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- spec_helper (LoadError)
The problem was that the file “spec_helper” was not existing. a simple:
rails generate rspec:install
solved the problem.
where do you add rails generate rspec:install?
In the root of your application.
Oh. And you don’t add it. It’s a command. You have to execute the command in the shell.
Thanks, I had no clue that this could be the solution to that error message
Yes 🙂 I guess I did 1 hour research until I find it out.
wow, Ur answer is amazing ! i have been confused by this for one day! Now it worked!