Nessuna descrizione http://j1x-huginn.herokuapp.com

capybara_helper.rb 535B

123456789101112131415161718192021222324252627
  1. require 'rails_helper'
  2. require 'capybara/rails'
  3. require 'capybara/poltergeist'
  4. require 'capybara-select2'
  5. Capybara.register_driver :poltergeist do |app|
  6. Capybara::Poltergeist::Driver.new(app, timeout: 60)
  7. end
  8. Capybara.javascript_driver = :poltergeist
  9. Capybara.default_max_wait_time = 60
  10. RSpec.configure do |config|
  11. config.include Warden::Test::Helpers
  12. config.before :suite do
  13. Warden.test_mode!
  14. end
  15. config.after :each do
  16. Warden.test_reset!
  17. end
  18. end
  19. VCR.configure do |config|
  20. config.ignore_localhost = true
  21. end