2015-04-25 14:20:15 -04:00
|
|
|
require 'database_cleaner'
|
|
|
|
|
2018-01-17 06:30:25 -05:00
|
|
|
DatabaseCleaner[:active_record].strategy = :deletion
|
2015-04-25 14:20:15 -04:00
|
|
|
|
|
|
|
Spinach.hooks.before_scenario do
|
|
|
|
DatabaseCleaner.start
|
|
|
|
end
|
|
|
|
|
|
|
|
Spinach.hooks.after_scenario do
|
|
|
|
DatabaseCleaner.clean
|
|
|
|
end
|