11 lines
240 B
Ruby
11 lines
240 B
Ruby
RSpec.configure do |config|
|
|
config.before(:suite) do
|
|
DatabaseCleaner.strategy = :truncation
|
|
DatabaseCleaner.clean_with(:truncation)
|
|
end
|
|
|
|
config.around(:each) do |example|
|
|
DatabaseCleaner.cleaning { example.run }
|
|
end
|
|
end
|