tests: fix tests for Rails.cache.

This commit is contained in:
evazion
2017-04-15 21:51:56 -05:00
parent 192190a313
commit c0e5c400a7
46 changed files with 14 additions and 69 deletions

View File

@@ -37,6 +37,10 @@ class Cache
nil
end
def self.clear
Rails.cache.clear
end
def self.sanitize(key)
key.gsub(/\W/) {|x| "%#{x.ord}"}.slice(0, 230)
end