Skip to content

Commit

Permalink
Modified so that we use db_cleaner
Browse files Browse the repository at this point in the history
  • Loading branch information
baphled committed Jul 15, 2010
1 parent 1da8cac commit 7ad7341
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions features/support/enhanced.rb
Expand Up @@ -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
Expand Down

0 comments on commit 7ad7341

Please sign in to comment.