Adapt tests to new, pickier Capybara

This commit is contained in:
James Mason 2018-11-19 09:36:39 -08:00
parent 287344e816
commit 0a5246388f
4 changed files with 8 additions and 12 deletions

View file

@ -5,7 +5,7 @@ RSpec.configure do |config|
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