spec/spec_helper.rb in make_voteable-0.0.2 vs spec/spec_helper.rb in make_voteable-0.1.0
- old
+ new
@@ -25,15 +25,11 @@
config.filter_run_excluding :exclude => true
config.mock_with :rspec
config.before(:suite) do
- DatabaseCleaner.strategy = :transaction
- DatabaseCleaner.clean_with(:truncation)
- end
-
- config.before(:each) do
- DatabaseCleaner.start
+ DatabaseCleaner.strategy = :truncation
+ DatabaseCleaner.clean
end
config.after(:each) do
DatabaseCleaner.clean
end