gitlab-org--gitlab-foss/features/support/db_cleaner.rb

12 lines
190 B
Ruby
Raw Normal View History

require 'database_cleaner'
DatabaseCleaner.strategy = :truncation
Spinach.hooks.before_scenario do
DatabaseCleaner.start
end
Spinach.hooks.after_scenario do
DatabaseCleaner.clean
end