ENV['RAILS_ENV'] ||= 'test' require 'dummy/application' require 'rspec/rails' require 'capybara/rails' require 'capybara/rspec' require 'capybara/email/rspec' require 'capybara/poltergeist' Capybara.default_driver = :poltergeist Capybara.javascript_driver = :poltergeist RSpec.configure do |config| config.include Capybara::DSL end