Sha256: 1b505811b100d792b1531fbe56ac0a12d28bda84f7ed3de5c421a2266b85411b

Contents?: true

Size: 664 Bytes

Versions: 39

Compression:

Stored size: 664 Bytes

Contents

# frozen_string_literal: true

module ActionDispatch
  module SystemTesting
    module TestHelpers
      module SetupAndTeardown # :nodoc:
        def host!(host)
          ActiveSupport::Deprecation.warn \
            "ActionDispatch::SystemTestCase#host! is deprecated with no replacement. " \
            "Set Capybara.app_host directly or rely on Capybara's default host."

          Capybara.app_host = host
        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

39 entries across 39 versions & 4 rubygems

Version Path
actionpack-6.1.7.10 lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
actionpack-6.1.7.9 lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
actionpack-6.1.7.8 lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
actionpack-6.1.7.7 lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/actionpack-6.1.6.1/lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
actionpack-6.1.7.6 lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
actionpack-6.1.7.5 lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
actionpack-6.1.7.4 lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/actionpack-6.1.6.1/lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
actionpack-6.1.7.3 lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
actionpack-6.1.7.2 lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
actionpack-6.1.7.1 lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
actionpack-6.1.7 lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
actionpack-6.1.6.1 lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
actionpack-6.1.6 lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
actionpack-6.1.5.1 lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
actionpack-6.1.5 lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
actionpack-6.1.4.7 lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
actionpack-6.1.4.6 lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb
actionpack-6.1.4.5 lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb