Running Cucumber deletes my whole app!

If a Cucumber run deletes your application directory, an integration fail between Capybara and Capybara Screenshot Show archive.org snapshot may be the cause. Capybara Screenshot defaults to storing screenshots in ., and tidying up screenshots happens to "tidy up" the application as well. Seen with Capybara 2.18 and Capybara Screenshot 1.0.4.

Upgrading Capybara Screenshot to 1.0.26 fixes the issue. Consider also setting Capybara.save_path = 'tmp/capybara' in an initializer.

Dominik Schöler