test/test_helper.rb in identity_cache-0.0.6 vs test/test_helper.rb in identity_cache-0.0.7

- old
+ new

@@ -1,8 +1,10 @@ require 'minitest/autorun' require 'mocha/setup' require 'active_record' +require 'memcached_store' +require 'active_support/cache/memcached_store' require 'helpers/cache' require 'helpers/database_connection' require 'helpers/active_record_objects' require File.dirname(__FILE__) + '/../lib/identity_cache' @@ -17,10 +19,10 @@ DatabaseConnection.setup ActiveSupport::Cache::Store.instrument = true # This patches AR::MemcacheStore to notify AS::Notifications upon read_multis like the rest of rails does -class ActiveSupport::Cache::MemCacheStore +class ActiveSupport::Cache::MemcachedStore def read_multi_with_instrumentation(*args, &block) instrument("read_multi", "MULTI", {:keys => args}) do read_multi_without_instrumentation(*args, &block) end end