title: How to disable database_cleaner for cucumber/rails?
body: <p>I set up cucumber/rails for my rails project and populated the test database with data, to run tests against it. When I run "rake cucumber" the database gets truncated. I tried to set DatabaseCleaner.strategy to :transaction and nil, but it still gets truncated. I'd prefer not to use database_cleaner at all for now, but its presence is required by cucumber. Here is my "./features/support/env.rb" file:</p>
  
  <pre><code>require 'cucumber/rails'
  require 'capybara/cucumber'
  
  Capybara.default_driver = :selenium
  
  ActionController::Base.allow_rescue = false
  
  
  begin
    DatabaseCleaner.strategy = nil
  rescue NameError
    raise "You need to add database_cleaner to your Gemfile (in the :test group) if you wish to use it."
  end
  
  
  Cucumber::Rails::Database.javascript_strategy = :truncation
  
  Capybara.register_driver :selenium do |app|
    Capybara::Selenium::Driver.new(app, :browser =&gt; :chrome)
  end
  </code></pre>