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



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

def after_teardown
  Capybara.reset_sessions!
ensure
  super
end

#before_teardownObject



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

def before_teardown
  take_failed_screenshot
ensure
  super
end