Sha256: fbed5373006fda802f4b730f03e8981da8ecfd59a3e50460f74c458bdb0ebe72
Contents?: true
Size: 738 Bytes
Versions: 6
Compression:
Stored size: 738 Bytes
Contents
require 'test/unit' require File.dirname(__FILE__) + '/memcache_server_test_helper' class MemcacheServerTest < Test::Unit::TestCase include MemcacheServerTestHelper include MemcacheServerTestHelper::AdvancedMethods PORT = 11212 def setup start_memcache(PORT) @memcache = Memcache::Server.new(:host => 'localhost', :port => PORT) end def teardown stop_memcache(PORT) end def test_stats m.set('foo', '1') m.get('foo') m.get('bar') stats = m.stats assert_equal 2, stats['cmd_get'] assert_equal 1, stats['cmd_set'] assert_equal 1, stats['curr_items'] end def test_clone m.set('foo', 1) c = m.clone assert_not_equal m.send(:socket), c.send(:socket) end end
Version data entries
6 entries across 6 versions & 2 rubygems