Skip to content

Commit

Permalink
Uncomment database_cleaner code.
Browse files Browse the repository at this point in the history
  • Loading branch information
parndt committed Sep 2, 2013
1 parent bdaeb64 commit 222f63a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions core/spec/support/database_cleaner.rb
Expand Up @@ -2,7 +2,7 @@

RSpec.configure do |config|
config.before(:suite) do
DatabaseCleaner.strategy = :truncation#:transaction
DatabaseCleaner.strategy = :transaction
end

config.before do
Expand All @@ -13,9 +13,9 @@
DatabaseCleaner.clean
end

# config.around(:each, :js) do |example|
# DatabaseCleaner.strategy = :truncation
# example.call
# DatabaseCleaner.strategy = :transaction
# end
config.around(:each, :js) do |example|
DatabaseCleaner.strategy = :truncation
example.call
DatabaseCleaner.strategy = :transaction
end
end

0 comments on commit 222f63a

Please sign in to comment.