```ruby
require 'capybara-screenshot/cucumber'
```

Configure capybara screenshot to use correct directory and prune excess screenshots.
user
```ruby
require 'capybara-screenshot/cucumber'
Capybara.save_path = File.join( ::Rails.root, 'tmp/capybara' )
Capybara::Screenshot.prune_strategy = { keep: 5 }
```
assistant