Permalink
Browse files

Merge branch 'master' of github.com:mattheworiordan/capybara-screenshot

  • Loading branch information...
2 parents 16e9820 + c14f791 commit ac9d495809d5ee1bbbadeac8221b68dd82066408 @mattheworiordan committed Jan 8, 2013
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/capybara-screenshot.rb
@@ -94,6 +94,10 @@ def self.register_filename_prefix_formatter(test_type, &block)
register_driver(:webkit_debug) do |driver, path|
driver.render(path)
end
+
+ register_driver(:terminus) do |driver, path|
+ driver.save_screenshot(path) if driver.respond_to?(:save_screenshot)
+ end
end
# Register filename prefix formatters

0 comments on commit ac9d495

Please sign in to comment.