Use transaction instead of truncation DatabaseCleaner strategy

It is the recommended strategy for ActiveRecod
This commit is contained in:
gregoirenovel 2017-04-04 11:43:49 +02:00
parent 30d1d87277
commit 0e13e4bdfd

View file

@ -55,7 +55,7 @@ VCR.configure do |c|
c.configure_rspec_metadata!
end
DatabaseCleaner.strategy = :truncation
DatabaseCleaner.strategy = :transaction
SIADETOKEN = :valid_token unless defined? SIADETOKEN
BROWSER.value = Browser.new('Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; Win64; x64; Trident/6.0)')