From b96de749646ef735e7f3b096ff39181f993c6b7e Mon Sep 17 00:00:00 2001 From: Thorsten Eckel Date: Mon, 9 Jul 2018 11:26:19 +0200 Subject: [PATCH] Fixed bug: Setting changes in RSpec test are leaking. --- spec/support/cache.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/support/cache.rb b/spec/support/cache.rb index ff2569724..bb1023744 100644 --- a/spec/support/cache.rb +++ b/spec/support/cache.rb @@ -4,5 +4,9 @@ RSpec.configure do |config| # be able to recognize the rollbacks # done by RSpec Cache.clear + + # clear Setting cache to prevent leaking + # of Setting changes from previous test examples + Setting.reload end end