mirror of
https://github.com/kaminari/kaminari.git
synced 2022-11-09 13:44:37 -05:00
14 lines
261 B
Ruby
14 lines
261 B
Ruby
|
DatabaseCleaner.strategy = :transaction
|
||
|
|
||
|
RSpec.configure do |config|
|
||
|
config.before :suite do
|
||
|
DatabaseCleaner.clean_with :truncation
|
||
|
end
|
||
|
config.before :each do
|
||
|
DatabaseCleaner.start
|
||
|
end
|
||
|
config.after :each do
|
||
|
DatabaseCleaner.clean
|
||
|
end
|
||
|
end
|