diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2008-06-20 00:25:41 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2008-06-20 00:25:41 -0700 |
commit | f47c81ff37afb5e5340b6f2cb47a5bb76b94f5c0 (patch) | |
tree | 58ac8eac933f229a64b232fff93566bd38a83194 /activesupport/test | |
parent | 72f93b581f1d1a7496ccebbd90578714c171c5a5 (diff) | |
download | rails-f47c81ff37afb5e5340b6f2cb47a5bb76b94f5c0.tar.gz rails-f47c81ff37afb5e5340b6f2cb47a5bb76b94f5c0.tar.bz2 rails-f47c81ff37afb5e5340b6f2cb47a5bb76b94f5c0.zip |
Fall back to #to_s for cache key expansion
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 09b56525e0..f3220d27aa 100644 --- a/activesupport/test/caching_test.rb +++ b/activesupport/test/caching_test.rb @@ -1,5 +1,11 @@ require 'abstract_unit' +class CacheKeyTest < Test::Unit::TestCase + def test_expand_cache_key + assert_equal 'name/1/2/true', ActiveSupport::Cache.expand_cache_key([1, '2', true], :name) + end +end + class CacheStoreSettingTest < Test::Unit::TestCase def test_file_fragment_cache_store store = ActiveSupport::Cache.lookup_store :file_store, "/path/to/cache/directory" |