diff --git a/features/support/enhanced.rb b/features/support/enhanced.rb index f2324907..457ad56f 100644 --- a/features/support/enhanced.rb +++ b/features/support/enhanced.rb @@ -38,13 +38,13 @@ class ActiveSupport::TestCase # after each scenario, which can lead to hard-to-debug failures in # subsequent scenarios. If you do this, we recommend you create a Before # block that will explicitly put your database in a known state. -Cucumber::Rails::World.use_transactional_fixtures = true +Cucumber::Rails::World.use_transactional_fixtures = false # How to clean your database when transactions are turned off. See # http://github.com/bmabey/database_cleaner for more info. -# require 'database_cleaner' -# require 'database_cleaner/cucumber' -# DatabaseCleaner.strategy = :truncation + require 'database_cleaner' + require 'database_cleaner/cucumber' + DatabaseCleaner.strategy = :transaction # this is necessary to have webrat "wait_for" the response body to be available # when writing steps that match against the response body returned by selenium