Sha256: a52570f5ab8b5bddf738750f9dde45b25bb90a6eb57fd163f5b940faa410c442
Contents?: true
Size: 429 Bytes
Versions: 2
Compression:
Stored size: 429 Bytes
Contents
require File.dirname(__FILE__) + '/test_helper' require 'dalli' PORT = 19112 $client = Dalli::Client.new("localhost:#{PORT}") class FooBar extend MethodCache cache_method :foo, :cache => $client def foo 'bar' end end class MethodCacheRemoteTest < Test::Unit::TestCase should 'work with dalli client' do start_memcache(PORT) $client.flush f = FooBar.new assert_equal 'bar', f.foo end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
method_cache-1.1.0 | test/method_cache_remote_test.rb |
method_cache-1.0.0 | test/method_cache_remote_test.rb |