mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
6124eb02c6
This commit splits the digest cache from the "details identity" cache. Now both caches can be managed independently.
10 lines
365 B
Ruby
10 lines
365 B
Ruby
# frozen_string_literal: true
|
|
|
|
require "abstract_unit"
|
|
|
|
class ResolverCacheTest < ActiveSupport::TestCase
|
|
def test_inspect_shields_cache_internals
|
|
ActionView::LookupContext::DetailsKey.clear
|
|
assert_match %r(#<ActionView::Resolver:0x[0-9a-f]+ @cache=#<ActionView::Resolver::Cache:0x[0-9a-f]+ keys=0 queries=0>>), ActionView::Resolver.new.inspect
|
|
end
|
|
end
|