lib/capybara-screenshot/saver.rb
def clear_save_path
        old_path = Capybara::Screenshot.capybara_tmp_path
        Capybara::Screenshot.capybara_tmp_path = nil
        yield
      ensure
        Capybara::Screenshot.capybara_tmp_path = old_path
      end
# If Capybara::Screenshot.capybara_tmp_path is set then
# the html_path or screenshot_path can be appended to this path in
# some versions of Capybara instead of using it as an absolute path
If Capybara::Screenshot.capybara_tmp_path is set then
the html_path or screenshot_path can be appended to this path in
some versions of Capybara instead of using it as an absolute path
If Capybara :: Screenshot . capybara_tmp_path is set then the html_path or screenshot_path can be appended to this path in some versions of Capybara instead of using it as an absolute path
def clear_save_path
        old_path = Capybara::Screenshot.capybara_tmp_path
        Capybara::Screenshot.capybara_tmp_path = nil
        yield
      ensure
        Capybara::Screenshot.capybara_tmp_path = old_path
      end
def clear_save_path old_path = Capybara :: Screenshot . capybara_tmp_path Capybara :: Screenshot . capybara_tmp_path = nil yield ensure Capybara :: Screenshot . capybara_tmp_path = old_path end
If Capybara::Screenshot.capybara_tmp_path is set then
the html_path or screenshot_path can be appended to this path in
some versions of Capybara instead of using it as an absolute path
If Capybara :: Screenshot . capybara_tmp_path is set then the html_path or screenshot_path can be appended to this path in some versions of Capybara instead of using it as an absolute path