Module: ActionDispatch::SystemTesting::TestHelpers::SetupAndTeardown

Included in:
ActionDispatch::SystemTestCase
Defined in:
actionpack/lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#after_teardownObject



21
22
23
24
25
# File 'actionpack/lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb', line 21

def after_teardown
  Capybara.reset_sessions!
ensure
  super
end

#before_teardownObject



15
16
17
18
19
# File 'actionpack/lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb', line 15

def before_teardown
  take_failed_screenshot
ensure
  super
end

#host!(host) ⇒ Object



7
8
9
10
11
12
13
# File 'actionpack/lib/action_dispatch/system_testing/test_helpers/setup_and_teardown.rb', line 7

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