diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2011-07-08 06:10:55 -0700 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2011-07-08 06:10:55 -0700 |
commit | 4f7ca00bf28fab4bc788e278734debaec70ea838 (patch) | |
tree | f2ffda981f0f796de09095ca603923c23d9e1ace /activesupport/test | |
parent | 3a1ec9b544c6056fb69b831cd3ed551a656a9b61 (diff) | |
parent | 9e63f9f2e42a3cbfd7b36e47ee5a7c94da757152 (diff) | |
download | rails-4f7ca00bf28fab4bc788e278734debaec70ea838.tar.gz rails-4f7ca00bf28fab4bc788e278734debaec70ea838.tar.bz2 rails-4f7ca00bf28fab4bc788e278734debaec70ea838.zip |
Merge pull request #2010 from hasclass/cache_false_values
Properly cache value when it is "false"
Diffstat (limited to 'activesupport/test')
-rw-r--r-- | activesupport/test/caching_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/activesupport/test/caching_test.rb b/activesupport/test/caching_test.rb index ed5ccb44de..498127e5bc 100644 --- a/activesupport/test/caching_test.rb +++ b/activesupport/test/caching_test.rb @@ -188,6 +188,11 @@ module CacheStoreBehavior assert_equal nil, @cache.read('foo') end + def test_should_read_and_write_false + assert_equal true, @cache.write('foo', false) + assert_equal false, @cache.read('foo') + end + def test_read_multi @cache.write('foo', 'bar') @cache.write('fu', 'baz') |