mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-17 08:36:06 +10:00
22 lines
388 B
Ruby
22 lines
388 B
Ruby
RSpec.configure do |config|
|
|
config.around(:each) do
|
|
DatabaseCleaner.clean_with(:truncation)
|
|
end
|
|
|
|
config.around(:each) do
|
|
DatabaseCleaner.strategy = :transaction
|
|
end
|
|
|
|
config.around(:each, js: true) do
|
|
DatabaseCleaner.strategy = :truncation
|
|
end
|
|
|
|
config.before(:each) do
|
|
DatabaseCleaner.start
|
|
end
|
|
|
|
config.after(:each) do
|
|
DatabaseCleaner.clean
|
|
end
|
|
end
|