require 'capybara-screenshot/cucumber'

require 'capybara-screenshot/cucumber'
Capybara.save_path = File.join( ::Rails.root, 'tmp/capybara' )
Capybara::Screenshot.prune_strategy = { keep: 5 }

Configure capybara screenshot to use correct directory and prune excess screenshots.
Configure capybara screenshot to use correct directory and prune excess screenshots.
