Sha256: 7983d7ecb7eca4595722477f76e81fd511e0fa3be81e9b3320458a2cff22891d
Contents?: true
Size: 588 Bytes
Versions: 5
Compression:
Stored size: 588 Bytes
Contents
require File.expand_path(File.dirname(__FILE__)+'/test_helper') describe 'TextcaptchaCache' do before(:each) do @cache = ActsAsTextcaptcha::TextcaptchaCache.new @cache.write('mykey', [1,2,3]) end it 'should write to the cache' do @cache.write('my-new-key', 'abc') @cache.read('my-new-key').must_equal 'abc' end it 'should read from the cache' do @cache.read('mykey').must_equal [1,2,3] end it 'should delete from the cache' do @cache.read('mykey').must_equal [1,2,3] @cache.delete('mykey') @cache.read('mykey').must_equal nil end end
Version data entries
5 entries across 5 versions & 1 rubygems