Skip to content
Browse files

Removed database cleaner overrides because it fails when multiple ORM…

…s are specified.
  • Loading branch information...
1 parent d0b9c0b commit 2b19dcae7de3138d67eadfe1e3254b8d5ac4edd8 @danielmorrison danielmorrison committed Apr 6, 2011
Showing with 0 additions and 16 deletions.
  1. +0 −16 lib/cucumber/rails/hooks/database_cleaner.rb
View
16 lib/cucumber/rails/hooks/database_cleaner.rb
@@ -4,22 +4,6 @@
require 'database_cleaner'
Before do
- begin
- $__cucumber_global_database_cleaner_strategy ||= DatabaseCleaner.connections[0].strategy # There is no accessor on the DatabaseCleaner
- rescue DatabaseCleaner::NoStrategySetError => e
- e.message << "\nYou can set the strategy in your features/support/env.rb"
- end
- end
-
- Before('~@no-txn', '~@selenium', '~@culerity', '~@celerity', '~@javascript') do
- DatabaseCleaner.strategy = $__cucumber_global_database_cleaner_strategy
- end
-
- Before('@no-txn,@selenium,@culerity,@celerity,@javascript') do
- DatabaseCleaner.strategy = :truncation
- end
-
- Before do
# TODO: May have to patch DatabaseCleaner's Transaction class to do what we used to do:
# run_callbacks :setup if respond_to?(:run_callbacks)
# IIRC There was a cucumber-rails ticket that added that to support multiple connections...

0 comments on commit 2b19dca

Please sign in to comment.
Something went wrong with that request. Please try again.