Methods
S
T
Instance Public methods
setup()
# File actionpack/test/controller/caching_test.rb, line 456
def setup
  super
  @store = ActiveSupport::Cache::MemoryStore.new
  @controller = FragmentCacheKeyTestController.new
  @controller.perform_caching = true
  @controller.cache_store = @store
end
test_fragment_cache_key()
# File actionpack/test/controller/caching_test.rb, line 464
def test_fragment_cache_key
  @controller.account_id = "123"
  assert_equal 'views/v1/123/what a key', @controller.fragment_cache_key('what a key')

  @controller.account_id = nil
  assert_equal 'views/v1//what a key', @controller.fragment_cache_key('what a key')
end