2015-04-25 14:20:15 -04:00
|
|
|
require 'database_cleaner'
|
|
|
|
|
2016-10-05 20:24:39 -04:00
|
|
|
DatabaseCleaner[:active_record].strategy = :truncation
|
2015-04-25 14:20:15 -04:00
|
|
|
|
|
|
|
Spinach.hooks.before_scenario do
|
|
|
|
DatabaseCleaner.start
|
|
|
|
end
|
|
|
|
|
|
|
|
Spinach.hooks.after_scenario do
|
|
|
|
DatabaseCleaner.clean
|
|
|
|
end
|