test/test_helper.rb in pdfjs_viewer-rails-0.3.1 vs test/test_helper.rb in pdfjs_viewer-rails-0.3.2

- old
+ new

@@ -13,22 +13,22 @@ # Load fixtures from the engine if ActiveSupport::TestCase.respond_to?(:fixture_path=) ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__) end +require 'capybara/apparition' require 'capybara/rails' -require 'capybara/poltergeist' require "timeout" SANDBOX_PATH = Pathname.new(File.expand_path("sandbox", __dir__)) SANDBOX_PATH.each_child do |screenshot| next if screenshot.basename.to_s == '.gitkeep' screenshot.delete end class ActionDispatch::IntegrationTest include Capybara::DSL - Capybara.default_driver = :poltergeist + Capybara.default_driver = :apparition def teardown super Capybara.reset_sessions! # Forget the (simulated) browser state Capybara.use_default_driver # Revert Capybara.current_driver to Capybara.default_driver