Sha256: c254ade2e5315310147a6a9e0245e25f7905a7f8cc665c5171f7cb64b75259c8
Contents?: true
Size: 584 Bytes
Versions: 2
Compression:
Stored size: 584 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') assert_nil @cache.read('mykey') end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
acts_as_textcaptcha-4.3.0 | test/textcaptcha_cache_test.rb |
acts_as_textcaptcha-4.2.0 | test/textcaptcha_cache_test.rb |