diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2019-02-07 13:30:58 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2019-02-08 15:13:09 -0800 |
commit | 6124eb02c63b666e640e778bf74380c3772926a0 (patch) | |
tree | 442354e5c605c63a6492efe59a1b09ec9bfa07d1 /actionview/test/template | |
parent | b67d5c6dedbf033515a96a95d24d085bf99a0d07 (diff) | |
download | rails-6124eb02c63b666e640e778bf74380c3772926a0.tar.gz rails-6124eb02c63b666e640e778bf74380c3772926a0.tar.bz2 rails-6124eb02c63b666e640e778bf74380c3772926a0.zip |
Split digest cache from details identity cache
This commit splits the digest cache from the "details identity" cache.
Now both caches can be managed independently.
Diffstat (limited to 'actionview/test/template')
-rw-r--r-- | actionview/test/template/resolver_cache_test.rb | 1 | ||||
-rw-r--r-- | actionview/test/template/test_case_test.rb | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/actionview/test/template/resolver_cache_test.rb b/actionview/test/template/resolver_cache_test.rb index 8a5db1346a..90b61a2aa1 100644 --- a/actionview/test/template/resolver_cache_test.rb +++ b/actionview/test/template/resolver_cache_test.rb @@ -4,6 +4,7 @@ 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 diff --git a/actionview/test/template/test_case_test.rb b/actionview/test/template/test_case_test.rb index ab3ababba4..4d3338e637 100644 --- a/actionview/test/template/test_case_test.rb +++ b/actionview/test/template/test_case_test.rb @@ -24,6 +24,10 @@ module ActionView DeveloperStruct = Struct.new(:name) module SharedTests + def setup + ActionView::LookupContext::DetailsKey.clear + end + def self.included(test_case) test_case.class_eval do test "helpers defined on ActionView::TestCase are available" do |