mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-09 04:36:11 +10:00
Also adds capybara-screenshot, which will automatically save the page as html and an image whenever a feature fails. Handy for debugging.
12 lines
190 B
Ruby
12 lines
190 B
Ruby
require 'database_cleaner'
|
|
|
|
DatabaseCleaner.strategy = :truncation
|
|
|
|
Spinach.hooks.before_scenario do
|
|
DatabaseCleaner.start
|
|
end
|
|
|
|
Spinach.hooks.after_scenario do
|
|
DatabaseCleaner.clean
|
|
end
|