diff options
author | Luca Guidi <guidi.luca@gmail.com> | 2008-11-03 10:07:05 +0100 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2008-11-06 19:59:02 +0000 |
commit | 4ccbc5dffb980edf35be899889f9e227dbd426c7 (patch) | |
tree | 28aacc749f7a7a6c17820a58cc1d09e0f4843877 /activesupport/test | |
parent | 099f10679ec6d9ead9606cac2f843e854787db0c (diff) | |
download | rails-4ccbc5dffb980edf35be899889f9e227dbd426c7.tar.gz rails-4ccbc5dffb980edf35be899889f9e227dbd426c7.tar.bz2 rails-4ccbc5dffb980edf35be899889f9e227dbd426c7.zip |
Increment the version of our modified memcache_client code to prevent users with the gem installed not seeing our changes.
The changes will be submitted upstream.
Signed-off-by: Michael Koziarski <michael@koziarski.com>
[#1239 state:committed]
Diffstat (limited to 'activesupport/test')
-rw-r--r-- | activesupport/test/caching_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/activesupport/test/caching_test.rb b/activesupport/test/caching_test.rb index cc371b3a7b..e7dac4cc6b 100644 --- a/activesupport/test/caching_test.rb +++ b/activesupport/test/caching_test.rb @@ -160,6 +160,12 @@ uses_memcached 'memcached backed store' do @cache.read('foo').gsub!(/.*/, 'baz') assert_equal 'bar', @cache.read('foo') end + + def test_write_should_return_true_on_success + result = @cache.write('foo', 'bar') + assert_equal 'bar', @cache.read('foo') # make sure 'foo' was written + assert result + end end class CompressedMemCacheStore < Test::Unit::TestCase |