|
require 'rails_helper'
require 'capybara/rails'
require 'capybara/poltergeist'
require 'capybara-select2'
require 'helpers/capybara_poltergeist_screenshot'
Capybara.register_driver :poltergeist do |app|
Capybara::Poltergeist::Driver.new(app, timeout: 2)
end
Capybara.javascript_driver = :poltergeist
Capybara.default_max_wait_time = 2
RSpec.configure do |config|
config.include Warden::Test::Helpers
config.include Capybara::PoltergeistScreenshot
config.before :suite do
Warden.test_mode!
end
config.after :each do
Warden.test_reset!
end
end
VCR.configure do |config|
config.ignore_localhost = true
end
|