I am creating a sample application for rspec testing, and I followed the below steps In Gemfile:
gem \"rspec-rails\", :group => [:test, :
You could also just add this to your spec_helper.rb:
require 'capybara/rspec'