2021-06-01 12:20:20 +00:00
|
|
|
# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
|
|
|
|
|
2017-06-06 15:49:49 +00:00
|
|
|
RSpec.configure do |config|
|
2019-05-31 07:54:38 +00:00
|
|
|
# Cache setup must be the first before hook
|
|
|
|
# Otherwise authenticated_as hook fails with random errors
|
2021-07-19 12:24:09 +00:00
|
|
|
config.prepend_before do
|
2017-06-06 15:49:49 +00:00
|
|
|
# clear the cache otherwise it won't
|
|
|
|
# be able to recognize the rollbacks
|
|
|
|
# done by RSpec
|
|
|
|
Cache.clear
|
2018-07-09 09:26:19 +00:00
|
|
|
|
|
|
|
# clear Setting cache to prevent leaking
|
|
|
|
# of Setting changes from previous test examples
|
|
|
|
Setting.reload
|
2019-02-28 14:21:59 +00:00
|
|
|
|
|
|
|
# reset bulk import to prevent wrong base setting
|
|
|
|
BulkImportInfo.disable
|
2017-06-06 15:49:49 +00:00
|
|
|
end
|
|
|
|
end
|