cache.rb 300 B

123456789101112
  1. RSpec.configure do |config|
  2. config.before(:each) do
  3. # clear the cache otherwise it won't
  4. # be able to recognize the rollbacks
  5. # done by RSpec
  6. Cache.clear
  7. # clear Setting cache to prevent leaking
  8. # of Setting changes from previous test examples
  9. Setting.reload
  10. end
  11. end