cucumber/cucumber-rails — Issue #180: Cannot change database_cleaner strategy between scenario
Author: phuong-nguyen
Created: 2011-10-12 08:49:42+00:00
State: open

I want to use transaction strategy for Rack Test and truncation strategy for Selenium test but cucumber rails make it impossible by adding a Before hook that call DatabaseCleaner.start. I want to change the strategy before DatabaseCleaner.start called, but cannot figure it out, since all hooks are appended. This make our test much slower.