mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
17 lines
384 B
Ruby
17 lines
384 B
Ruby
# frozen_string_literal: true
|
|
|
|
RSpec.configure do |config|
|
|
config.before(:suite) do
|
|
DatabaseCleaner.clean_with(:transaction)
|
|
Rails.application.load_seed
|
|
end
|
|
|
|
config.before(:each) do
|
|
DatabaseCleaner.start
|
|
end
|
|
|
|
config.after(:each) do |example|
|
|
TransactionalCapybara::AjaxHelpers.wait_for_ajax(page) if example.metadata[:js]
|
|
DatabaseCleaner.clean
|
|
end
|
|
end
|