aboutsummaryrefslogblamecommitdiffstats
path: root/actionview/test/template/resolver_cache_test.rb
blob: 90b61a2aa1b58b956a82d30717f26c59dcfdd1cd (plain) (tree)
1
2
3
4
5
6
7
8
9
10

                             
                       


                                                 
                                               


                                                                                                                                                             
# 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