Sha256: 94d8a314fb2a4a7499bc08b78b4efab269b2b40feb4065693edbb31269fbc8ae

Contents?: true

Size: 473 Bytes

Versions: 15

Compression:

Stored size: 473 Bytes

Contents

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

15 entries across 15 versions & 1 rubygems

Version Path
actionpack-5.1.7 lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
actionpack-5.1.7.rc1 lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
actionpack-5.1.6.2 lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
actionpack-5.1.6.1 lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
actionpack-5.1.6 lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
actionpack-5.1.5 lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
actionpack-5.1.5.rc1 lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
actionpack-5.1.4 lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
actionpack-5.1.4.rc1 lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
actionpack-5.1.3 lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
actionpack-5.1.3.rc3 lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
actionpack-5.1.3.rc2 lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
actionpack-5.1.3.rc1 lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
actionpack-5.1.2 lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
actionpack-5.1.2.rc1 lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb