Update capybara to version 3.7.1

This commit is contained in:
depfu[bot] 2018-09-05 22:48:38 +00:00 committed by Henne Vogelsang
parent 272690fa21
commit 0a98a744b6
No known key found for this signature in database
GPG key ID: 9D6164C2955FADE0
2 changed files with 12 additions and 13 deletions

View file

@ -1,14 +1,14 @@
# frozen_string_literal: true
# Automatically save the page a test fails
Capybara.save_and_open_page_path = Rails.root.join('tmp', 'capybara')
Capybara.save_path = Rails.root.join('tmp', 'capybara')
RSpec.configure do |config|
config.after(:each, type: :feature) do
example_filename = RSpec.current_example.full_description
example_filename = example_filename.tr(' ', '_')
example_filename += '.html'
example_filename = File.expand_path(example_filename, Capybara.save_and_open_page_path)
example_filename = File.expand_path(example_filename, Capybara.save_path)
if RSpec.current_example.exception.present?
save_page(example_filename)
# remove the file if the test starts working again