blob: 8294bb1445f104b2c537187a33aad7811f4002aa (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
require 'database_cleaner'
DatabaseCleaner[:active_record].strategy = :truncation
Spinach.hooks.before_scenario do
DatabaseCleaner.start
end
Spinach.hooks.after_scenario do
DatabaseCleaner.clean
end
|