Skip to content

Commit

Permalink
Merge pull request #42428 from bpo/fix-failed-screenshot-doc
Browse files Browse the repository at this point in the history
Fix outdated explanation of take_failed_screenshot usage
  • Loading branch information
zzak committed Jun 9, 2021
2 parents b2bdeca + 4f32e2e commit a933330
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,7 @@ def take_screenshot
# Takes a screenshot of the current page in the browser if the test
# failed.
#
# +take_failed_screenshot+ is included in <tt>application_system_test_case.rb</tt>
# that is generated with the application. To take screenshots when a test
# fails add +take_failed_screenshot+ to the teardown block before clearing
# sessions.
# +take_failed_screenshot+ is called during system test teardown.
def take_failed_screenshot
take_screenshot if failed? && supports_screenshot?
end
Expand Down

0 comments on commit a933330

Please sign in to comment.