Sha256: 6b414658fa801d1e92a58029aadd25bef33fe3d5bb2ba2afb98f7107506e9663

Contents?: true

Size: 570 Bytes

Versions: 84

Compression:

Stored size: 570 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
          begin
            take_failed_screenshot
          ensure
            Capybara.reset_sessions!
          end
        ensure
          super
        end
      end
    end
  end
end

Version data entries

84 entries across 84 versions & 4 rubygems

Version Path
zuora_connect_ui-0.9.0 vendor/ruby/2.6.0/gems/actionpack-5.2.3/lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
zuora_connect_ui-0.8.3 vendor/ruby/2.6.0/gems/actionpack-5.2.3/lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
zuora_connect_ui-0.8.2 vendor/ruby/2.6.0/gems/actionpack-5.2.3/lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
zuora_connect_ui-0.8.1 vendor/ruby/2.6.0/gems/actionpack-5.2.3/lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
zuora_connect_ui-0.8.0 vendor/ruby/2.6.0/gems/actionpack-5.2.3/lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
spiral_form-0.1.1 vendor/bundle/gems/actionpack-5.2.3/lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
spiral_form-0.1.0 vendor/bundle/gems/actionpack-5.2.3/lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
zuora_connect_ui-0.7.1 vendor/ruby/2.6.0/gems/actionpack-5.2.3/lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
zuora_connect_ui-0.7.0 vendor/ruby/2.6.0/gems/actionpack-5.2.3/lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
jets-1.9.7 vendor/rails/actionpack/lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
jets-1.9.6 vendor/rails/actionpack/lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
jets-1.9.5 vendor/rails/actionpack/lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
jets-1.9.4 vendor/rails/actionpack/lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
jets-1.9.3 vendor/rails/actionpack/lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
jets-1.9.2 vendor/rails/actionpack/lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
jets-1.9.1 vendor/rails/actionpack/lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
jets-1.9.0 vendor/rails/actionpack/lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
jets-1.8.14 vendor/rails/actionpack/lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
jets-1.8.13 vendor/rails/actionpack/lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
jets-1.8.12 vendor/rails/actionpack/lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb