Sha256: 8ea2b9ebf1da0581016eba1dc92a9a4f72aad93f699161b079fbe7f76d016518

Contents?: true

Size: 591 Bytes

Versions: 11

Compression:

Stored size: 591 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 before_teardown
          take_failed_screenshot
        ensure
          super
        end

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

Version data entries

11 entries across 11 versions & 3 rubygems

Version Path
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/actionpack-6.0.0/lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
zuora_connect_ui-0.9.2 vendor/ruby/2.6.0/gems/actionpack-6.0.0/lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
chatops-rpc-0.0.2 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/actionpack-6.0.0/lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
chatops-rpc-0.0.1 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/actionpack-6.0.0/lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
zuora_connect_ui-0.9.1 vendor/ruby/2.6.0/gems/actionpack-6.0.0/lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
zuora_connect_ui-0.9.0 vendor/ruby/2.6.0/gems/actionpack-6.0.0/lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
zuora_connect_ui-0.8.3 vendor/ruby/2.6.0/gems/actionpack-6.0.0/lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
zuora_connect_ui-0.8.2 vendor/ruby/2.6.0/gems/actionpack-6.0.0/lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
actionpack-6.0.0 lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
actionpack-6.0.0.rc2 lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
actionpack-6.0.0.rc1 lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb