Methods
- T
-
- test_expand_cache_key,
- test_expand_cache_key_array_with_something_that_responds_to_cache_key,
- test_expand_cache_key_of_false,
- test_expand_cache_key_of_nil,
- test_expand_cache_key_of_true,
- test_expand_cache_key_rails_cache_id_should_win_over_rails_app_version,
- test_expand_cache_key_respond_to_cache_key,
- test_expand_cache_key_with_rails_app_version,
- test_expand_cache_key_with_rails_cache_id
Instance Public methods
test_expand_cache_key()
Link
test_expand_cache_key_array_with_something_that_responds_to_cache_key()
Link
test_expand_cache_key_of_false()
Link
test_expand_cache_key_of_nil()
Link
test_expand_cache_key_of_true()
Link
test_expand_cache_key_rails_cache_id_should_win_over_rails_app_version()
Link
# File activesupport/test/caching_test.rb, line 34 def test_expand_cache_key_rails_cache_id_should_win_over_rails_app_version begin ENV['RAILS_CACHE_ID'] = 'c99' ENV['RAILS_APP_VERSION'] = 'rails3' assert_equal 'c99/foo', ActiveSupport::Cache.expand_cache_key(:foo) ensure ENV['RAILS_CACHE_ID'] = nil ENV['RAILS_APP_VERSION'] = nil end end
test_expand_cache_key_respond_to_cache_key()
Link
test_expand_cache_key_with_rails_app_version()
Link
test_expand_cache_key_with_rails_cache_id()
Link
# File activesupport/test/caching_test.rb, line 11 def test_expand_cache_key_with_rails_cache_id begin ENV['RAILS_CACHE_ID'] = 'c99' assert_equal 'c99/foo', ActiveSupport::Cache.expand_cache_key(:foo) assert_equal 'c99/foo', ActiveSupport::Cache.expand_cache_key([:foo]) assert_equal 'c99/foo/bar', ActiveSupport::Cache.expand_cache_key([:foo, :bar]) assert_equal 'nm/c99/foo', ActiveSupport::Cache.expand_cache_key(:foo, :nm) assert_equal 'nm/c99/foo', ActiveSupport::Cache.expand_cache_key([:foo], :nm) assert_equal 'nm/c99/foo/bar', ActiveSupport::Cache.expand_cache_key([:foo, :bar], :nm) ensure ENV['RAILS_CACHE_ID'] = nil end end