aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/metal/rescue.rb
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2017-03-01 07:54:28 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2017-03-04 17:40:51 +0900
commit2ee4058cc5c9327ddc5bfecc05e625320dd166a1 (patch)
tree9402f72c7c4e0e3da64fbb397b0f0aca06f0b1f9 /actionpack/lib/action_controller/metal/rescue.rb
parentde17d9e23d2dd7ea4551919a56031221f10f07bd (diff)
downloadrails-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