diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-05-27 14:54:58 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-05-27 14:54:58 -0500 |
commit | 6ef329d3250cfc3a21184cc2a8248aa18a1f6815 (patch) | |
tree | ffc89a0391f5124937556aa9226eb204a9d25140 /activesupport/test | |
parent | 61c471eebb3718a3ef5741e1e4d0974be7483290 (diff) | |
download | rails-6ef329d3250cfc3a21184cc2a8248aa18a1f6815.tar.gz rails-6ef329d3250cfc3a21184cc2a8248aa18a1f6815.tar.bz2 rails-6ef329d3250cfc3a21184cc2a8248aa18a1f6815.zip |
Ensure Memcache local cache returns duplicated values [#2302 state:resolved]
Diffstat (limited to 'activesupport/test')
-rw-r--r-- | activesupport/test/caching_test.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/activesupport/test/caching_test.rb b/activesupport/test/caching_test.rb index bd237a5c8e..51d04d9388 100644 --- a/activesupport/test/caching_test.rb +++ b/activesupport/test/caching_test.rb @@ -180,6 +180,15 @@ uses_memcached 'memcached backed store' do end end + def test_stored_objects_should_not_be_frozen + @cache.with_local_cache do + @cache.write('foo', 'bar') + end + @cache.with_local_cache do + assert !@cache.read('foo').frozen? + end + end + def test_write_should_return_true_on_success @cache.with_local_cache do result = @cache.write('foo', 'bar') |