2017-06-06 15:49:49 +00:00
|
|
|
RSpec.configure do |config|
|
2017-06-27 13:44:45 +00:00
|
|
|
config.before(:each) 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
|