lib/rspeckled/plugins/database_cleaner.rb in rspeckled-0.0.26 vs lib/rspeckled/plugins/database_cleaner.rb in rspeckled-0.0.27

- old
+ new

@@ -13,11 +13,11 @@ end if autodetected RSpec.configure do |config| config.before(:suite) do - DatabaseCleaner.clean_with(:truncation) + DatabaseCleaner.clean_with(:truncation, :except => %w{ar_internal_metadata}) end config.around(:each) do |example| DatabaseCleaner.strategy = :transaction DatabaseCleaner.start @@ -26,10 +26,10 @@ DatabaseCleaner.clean end config.around(:each, :js => true) do |example| - DatabaseCleaner.strategy = :truncation + DatabaseCleaner.strategy = [:truncation, :except => %w{ar_internal_metadata}] example.run end end