Browse Source

Fixed bug: Setting changes in RSpec test are leaking.

Thorsten Eckel 6 years ago
parent
commit
b96de74964
1 changed files with 4 additions and 0 deletions
  1. 4 0
      spec/support/cache.rb

+ 4 - 0
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