Welcome to mirror list, hosted at ThFree Co, Russian Federation.

db_cleaner.rb « support « features - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
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