Sha256: 18599f32a29dfc532e37ae72002aab1fa32a171efb1d2dce46ecd1beec8952bc

Contents?: true

Size: 575 Bytes

Versions: 33

Compression:

Stored size: 575 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)
          Capybara.app_host = host
        end

        def before_setup
          host! DEFAULT_HOST
          super
        end

        def before_teardown
          take_failed_screenshot
        ensure
          super
        end

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

Version data entries

33 entries across 33 versions & 4 rubygems

Version Path
actionpack-6.0.6.1 lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
actionpack-6.0.6 lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
actionpack-6.0.5.1 lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
actionpack-6.0.5 lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
actionpack-6.0.4.8 lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
actionpack-6.0.4.7 lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
actionpack-6.0.4.6 lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
actionpack-6.0.4.5 lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
actionpack-6.0.4.4 lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
actionpack-6.0.4.3 lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
actionpack-6.0.4.2 lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
actionpack-6.0.4.1 lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
actionpack-6.0.4 lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
actionpack-6.0.3.7 lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
actionpack-6.0.3.6 lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
actionpack-6.0.3.5 lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
actionpack-6.0.3.4 lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
actionpack-6.0.3.3 lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
actionpack-6.0.3.2 lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
actionpack-6.0.3.1 lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb