Adapt tests to new, pickier Capybara
This commit is contained in:
parent
287344e816
commit
0a5246388f
4 changed files with 8 additions and 12 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue