diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2017-03-01 07:54:28 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2017-03-04 17:40:51 +0900 |
commit | 2ee4058cc5c9327ddc5bfecc05e625320dd166a1 (patch) | |
tree | 9402f72c7c4e0e3da64fbb397b0f0aca06f0b1f9 /actionpack/lib/action_controller/metal/rescue.rb | |
parent | de17d9e23d2dd7ea4551919a56031221f10f07bd (diff) | |
download | rails-2ee4058cc5c9327ddc5bfecc05e625320dd166a1.tar.gz rails-2ee4058cc5c9327ddc5bfecc05e625320dd166a1.tar.bz2 rails-2ee4058cc5c9327ddc5bfecc05e625320dd166a1.zip |
Do not take screenshot if driver does not support screenshot
`Capybara::RackTest::Driver` does not support taking screenshots. If call
`#save_screenshot` on `Capybara::RackTest::Driver` will raise the error.
```ruby
Error:
UsersTest#test_visiting_the_index:
Capybara::NotSupportedByDriverError: Capybara::Driver::Base#save_screenshot
```
To prevent errors, if driver does not support screenshot, do not call it.
Diffstat (limited to 'actionpack/lib/action_controller/metal/rescue.rb')
0 files changed, 0 insertions, 0 deletions