From 1ee06b48ecf727f8794b3852d355b80d8b3624df Mon Sep 17 00:00:00 2001 From: Martin Eismann Date: Tue, 30 Jul 2013 11:58:18 +0200 Subject: [PATCH] Describe configuration option 'autorun_database_cleaner' in README Issues #215 and #232 resulted in adding a configuration option to disable the by-default-usage of DatabaseCleaner: Cucumber::Rails::Database.autorun_database_cleaner = false This has to go into the README so that users can easily learn about it. Currently Google finds the related issues first, which is not optimal. --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 19ef6809..27860537 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,14 @@ With Rake: Without Rake: [bundle exec] cucumber + +## Configuration options + +By default, cucumber-rails runs `DatabaseCleaner.start` and `DatabaseCleaner.clean` before and after your scenarios. You can disable this behaviour like so: + + # features/support/env.rb + # ... + Cucumber::Rails::Database.autorun_database_cleaner = false ## Bugs and feature requests