app/controllers/stockpot/database_cleaner_controller.rb
def clear_cache_and_redis
      DatabaseCleaner[:redis].clean_with(:deletion)
      Rails.cache.clear
      Timecop.return
    end
# Clean database before, between, and after tests by clearing Rails
# and REDIS caches and truncating the active record database.
Clean database before, between, and after tests by clearing Rails
and REDIS caches and truncating the active record database.
Clean database before between and after tests by clearing Rails and REDIS caches and truncating the active record database .
def clear_cache_and_redis
      DatabaseCleaner[:redis].clean_with(:deletion)
      Rails.cache.clear
      Timecop.return
    end
def clear_cache_and_redis DatabaseCleaner [ :redis ] . clean_with ( :deletion ) Rails . cache . clear Timecop . return end
Clean database before, between, and after tests by clearing Rails
and REDIS caches and truncating the active record database.
Clean database before between and after tests by clearing Rails and REDIS caches and truncating the active record database .