In rails 4.x and later (rspec-rails 3.1.0 and later) add this to the top of each of your spec files:
require "rails_helper" # this
not
require "spec_helper" # not this
In rails 4.x and later (rspec-rails 3.1.0 and later) add this to the top of each of your spec files:
require "rails_helper" # this
not
require "spec_helper" # not this