Sha256: 9ac0a74a4ca8ad341bba4cef9e623f5e06bbe3b8ef3e75e0166927a80f9f85d7
Contents?: true
Size: 603 Bytes
Versions: 2
Compression:
Stored size: 603 Bytes
Contents
require File.dirname(__FILE__) + '/test_helper.rb' class TestTmpCache < Test::Unit::TestCase def setup TmpCache.set('name', 'shokai', 2) end def test_get assert TmpCache.get('name') == 'shokai' end def test_expire sleep 3 assert TmpCache.get('name') == nil end def test_reset TmpCache.reset assert TmpCache.get('name') == nil end def test_keys TmpCache.set('mail', 'hashimoto@shokai.org') assert TmpCache.keys.sort == ['name', 'mail'].sort end def test_values assert TmpCache.values == ['shokai'] end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tmp_cache-0.0.2 | test/test_tmp_cache.rb |
tmp_cache-0.0.1 | test/test_tmp_cache.rb |