How is spec/rails_helper.rb different from spec/spec_helper.rb? Do I need it?

rspec-rails 3 generates spec_helper.rb and rails_helper.rb. spec_helper.rb is for specs which don’t depend on Rails (such as specs for classes in the lib directory). rails_helper.rb is for specs which do depend on Rails (in a Rails project, most or all of them). rails_helper.rb requires spec_helper.rb. So no, don’t get rid of rails_helper.rb; require it (and … Read more