Sha256: 6617f28d83c305a3401d674d92a2ad07441d97678848607bf97ac1bb38259fd7

Contents?: true

Size: 1.16 KB

Versions: 7

Compression:

Stored size: 1.16 KB

Contents

# Configure Rails Environment
ENV["RAILS_ENV"] = "test"

require File.expand_path("../../test/dummy/config/environment.rb",  __FILE__)
# ActiveRecord::Migrator.migrations_paths = [File.expand_path("../../test/dummy/db/migrate", __FILE__)]
# ActiveRecord::Migrator.migrations_paths << File.expand_path('../../db/migrate', __FILE__)
require "rails/test_help"

# Filter out Minitest backtrace while allowing backtrace from other libraries
# to be shown.
Minitest.backtrace_filter = Minitest::BacktraceFilter.new

# Load fixtures from the engine
if ActiveSupport::TestCase.respond_to?(:fixture_path=)
  ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
end

require 'capybara/rails'
require 'capybara/poltergeist'
require "timeout"

SANDBOX_PATH = Pathname.new(File.expand_path("sandbox", __dir__))
SANDBOX_PATH.each_child { |screenshot| screenshot.delete }

class ActionDispatch::IntegrationTest
  include Capybara::DSL
  Capybara.default_driver = :poltergeist

  def teardown
    super
    Capybara.reset_sessions!    # Forget the (simulated) browser state
    Capybara.use_default_driver # Revert Capybara.current_driver to Capybara.default_driver
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
pdfjs_viewer-rails-0.0.7 test/test_helper.rb
pdfjs_viewer-rails-0.0.6 test/test_helper.rb
pdfjs_viewer-rails-0.0.5 test/test_helper.rb
pdfjs_viewer-rails-0.0.4 test/test_helper.rb
pdfjs_viewer-rails-0.0.3 test/test_helper.rb
pdfjs_viewer-rails-0.0.2 test/test_helper.rb
pdfjs_viewer-rails-0.0.1 test/test_helper.rb