diff options
author | Richard Macklin <richard.github@nrm.com> | 2019-05-08 08:38:42 -0700 |
---|---|---|
committer | Richard Macklin <richard.github@nrm.com> | 2019-05-08 08:38:42 -0700 |
commit | 87833300340410b1225c4d79ba378198a859c62b (patch) | |
tree | be6f2c5466ee999c1cfad92c50e22b0279c38bc6 /guides/source | |
parent | 28aca474d48b6acdbe8c7861d9347e27c65fafd9 (diff) | |
download | rails-87833300340410b1225c4d79ba378198a859c62b.tar.gz rails-87833300340410b1225c4d79ba378198a859c62b.tar.bz2 rails-87833300340410b1225c4d79ba378198a859c62b.zip |
Update testing guide to reflect changes from #36047
In #36047 we moved `take_failed_screenshot` from an `after_teardown`
hook to a `before_teardown` hook. However, I didn't realize the Testing
rails guide was explicitly mentioning that it happened inside
`after_teardown`. So this updates the docs to be consistent with that
change.
[ci skip]
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/testing.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/testing.md b/guides/source/testing.md index 18eecf49fa..9540bb2af5 100644 --- a/guides/source/testing.md +++ b/guides/source/testing.md @@ -781,7 +781,7 @@ This can be helpful for viewing the browser at the point a test failed, or to view screenshots later for debugging. Two methods are provided: `take_screenshot` and `take_failed_screenshot`. -`take_failed_screenshot` is automatically included in `after_teardown` inside +`take_failed_screenshot` is automatically included in `before_teardown` inside Rails. The `take_screenshot` helper method can be included anywhere in your tests to |