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