Updated

spec/support / database_cleaner.rb

A
14 lines of codes
0 methods
N/A complexity/method
1 churn
0.0 complexity
0 duplications
RSpec.configure do |config| config.before(:suite) do DatabaseCleaner.strategy = :transaction DatabaseCleaner.clean_with(:truncation) end config.around(:each) do |example| DatabaseCleaner.cleaning do example.run end end end