diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-12-30 10:04:39 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-12-30 10:04:39 -0800 |
commit | f12d90486c5bf6b04f304a24dd43a0e1fa782aa6 (patch) | |
tree | c73133c957ea709fccb1c4ef85bc08e5456c921c /activesupport/test | |
parent | 0814e745b777f6eae000d098b127f4f0a9f6cb20 (diff) | |
parent | b815676ea9c6a1700839b2eb218654d30ae30b52 (diff) | |
download | rails-f12d90486c5bf6b04f304a24dd43a0e1fa782aa6.tar.gz rails-f12d90486c5bf6b04f304a24dd43a0e1fa782aa6.tar.bz2 rails-f12d90486c5bf6b04f304a24dd43a0e1fa782aa6.zip |
Merge pull request #4227 from gazay/3-2-stable-marshalling
3 2 stable marshalling
Diffstat (limited to 'activesupport/test')
-rw-r--r-- | activesupport/test/caching_test.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/activesupport/test/caching_test.rb b/activesupport/test/caching_test.rb index 5488070d8c..3f41f80c3a 100644 --- a/activesupport/test/caching_test.rb +++ b/activesupport/test/caching_test.rb @@ -220,6 +220,21 @@ module CacheStoreBehavior assert_equal false, @cache.read('foo') end + def test_should_read_cached_numeric_from_previous_rails_versions + @old_cache = ActiveSupport::Cache::Entry.create( 1, Time.now ) + assert_equal( 1, @old_cache.value ) + end + + def test_should_read_cached_hash_from_previous_rails_versions + @old_cache = ActiveSupport::Cache::Entry.create( {}, Time.now ) + assert_equal( {}, @old_cache.value ) + end + + def test_should_read_cached_string_from_previous_rails_versions + @old_cache = ActiveSupport::Cache::Entry.create( 'string', Time.now ) + assert_equal( 'string', @old_cache.value ) + end + def test_read_multi @cache.write('foo', 'bar') @cache.write('fu', 'baz') |