mirror of
https://github.com/zammad/zammad
synced 2026-05-24 09:48:36 +00:00
19 lines
573 B
Ruby
19 lines
573 B
Ruby
# Copyright (C) 2012-2026 Zammad Foundation, https://zammad-foundation.org/
|
|
|
|
RSpec.configure do |config|
|
|
# Cache setup must be the first before hook
|
|
# Otherwise authenticated_as hook fails with random errors
|
|
config.prepend_before do
|
|
# clear the cache otherwise it won't
|
|
# be able to recognize the rollbacks
|
|
# done by RSpec
|
|
Rails.cache.clear
|
|
|
|
# clear Setting cache to prevent leaking
|
|
# of Setting changes from previous test examples
|
|
Setting.reload
|
|
|
|
# reset bulk import to prevent wrong base setting
|
|
BulkImportInfo.disable
|
|
end
|
|
end
|