aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test
diff options
context:
space:
mode:
authorLuca Guidi <guidi.luca@gmail.com>2008-11-03 10:07:05 +0100
committerMichael Koziarski <michael@koziarski.com>2008-11-06 19:59:02 +0000
commit4ccbc5dffb980edf35be899889f9e227dbd426c7 (patch)
tree28aacc749f7a7a6c17820a58cc1d09e0f4843877 /activesupport/test
parent099f10679ec6d9ead9606cac2f843e854787db0c (diff)
downloadrails-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.rb6
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