Methods
- N
- T
-
- test_entry_legacy_optional_ivars,
- test_expand_cache_key,
- test_expand_cache_key_array_with_something_that_responds_to_cache_key,
- test_expand_cache_key_of_array_like_object,
- 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
Class Public methods
new(value, options = {})
Link
Instance Public methods
test_entry_legacy_optional_ivars()
Link
# File activesupport/test/caching_test.rb, line 43 def test_entry_legacy_optional_ivars legacy = Class.new(ActiveSupport::Cache::Entry) do def initialize(value, options = {}) @value = value @expires_in = nil @created_at = nil super end end entry = legacy.new 'foo' assert_equal 'foo', entry.value end
test_expand_cache_key()
Link
test_expand_cache_key_array_with_something_that_responds_to_cache_key()
Link
test_expand_cache_key_of_array_like_object()
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
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 62 def test_expand_cache_key_with_rails_cache_id with_env('RAILS_CACHE_ID' => 'c99') do 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) end end