Sha256: 8ba0f7220862c0ae9ae0718f094391f59947968183eb9a1b7d48ee7681b0e66e

Contents?: true

Size: 504 Bytes

Versions: 7

Compression:

Stored size: 504 Bytes

Contents

# frozen_string_literal: true

module ActionDispatch
  module SystemTesting
    module TestHelpers
      module SetupAndTeardown # :nodoc:
        DEFAULT_HOST = "http://127.0.0.1"

        def host!(host)
          super
          Capybara.app_host = host
        end

        def before_setup
          host! DEFAULT_HOST
          super
        end

        def after_teardown
          take_failed_screenshot
          Capybara.reset_sessions!
          super
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 3 rubygems

Version Path
actionpack-5.2.0 lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
actionpack-5.2.0.rc2 lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
actionpack-5.2.0.rc1 lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
backported_system_tests-0.1.0 lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
actionpack-5.2.0.beta2 lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
actionpack-5.2.0.beta1 lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
ruby-on-quails-0.1.0 actionpack/lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb