diff options
author | Brian Durand <brian@embellishedvisions.com> | 2011-08-01 12:05:29 -0500 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2011-08-13 16:22:27 -0700 |
commit | 05d4b9d2fdb0aceb9082303301ecaf77605288a0 (patch) | |
tree | 46769c7148838fefa6cacad50aff917ec1aff580 /activesupport/test/caching_test.rb | |
parent | cc78a8f04cb8a4ced280e73de6337cec25070a8e (diff) | |
download | rails-05d4b9d2fdb0aceb9082303301ecaf77605288a0.tar.gz rails-05d4b9d2fdb0aceb9082303301ecaf77605288a0.tar.bz2 rails-05d4b9d2fdb0aceb9082303301ecaf77605288a0.zip |
Pass options in ActiveSupport::Cache::CacheStore#read_multi through to the delete_entry call.
Diffstat (limited to 'activesupport/test/caching_test.rb')
-rw-r--r-- | activesupport/test/caching_test.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/activesupport/test/caching_test.rb b/activesupport/test/caching_test.rb index dff3d6ef0d..6bb13ec9b8 100644 --- a/activesupport/test/caching_test.rb +++ b/activesupport/test/caching_test.rb @@ -199,6 +199,14 @@ module CacheStoreBehavior @cache.write('fud', 'biz') assert_equal({"foo" => "bar", "fu" => "baz"}, @cache.read_multi('foo', 'fu')) end + + def test_read_multi_with_expires + @cache.write('foo', 'bar', :expires_in => 0.001) + @cache.write('fu', 'baz') + @cache.write('fud', 'biz') + sleep(0.002) + assert_equal({"fu" => "baz"}, @cache.read_multi('foo', 'fu')) + end def test_read_and_write_compressed_small_data @cache.write('foo', 'bar', :compress => true) |