aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/test/template/log_subscriber_test.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2019-02-08 14:43:22 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2019-02-08 16:13:03 -0800
commitf369b63ad69ac8bb29811e145a148dd109de777c (patch)
tree8c13982ee9f98929f532ab6865640806d9e6e5e7 /actionview/test/template/log_subscriber_test.rb
parent6124eb02c63b666e640e778bf74380c3772926a0 (diff)
downloadrails-f369b63ad69ac8bb29811e145a148dd109de777c.tar.gz
rails-f369b63ad69ac8bb29811e145a148dd109de777c.tar.bz2
rails-f369b63ad69ac8bb29811e145a148dd109de777c.zip
Teach DetailsKey how to clear the template cache
This commit exposes all system wide view paths so that we can clear their caches.
Diffstat (limited to 'actionview/test/template/log_subscriber_test.rb')
-rw-r--r--actionview/test/template/log_subscriber_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionview/test/template/log_subscriber_test.rb b/actionview/test/template/log_subscriber_test.rb
index 4574b798d9..83bb651ea3 100644
--- a/actionview/test/template/log_subscriber_test.rb
+++ b/actionview/test/template/log_subscriber_test.rb
@@ -11,9 +11,9 @@ class AVLogSubscriberTest < ActiveSupport::TestCase
def setup
super
+ ActionView::LookupContext::DetailsKey.clear
+
view_paths = ActionController::Base.view_paths
- view_paths.each(&:clear_cache)
- ActionView::LookupContext.fallbacks.each(&:clear_cache)
lookup_context = ActionView::LookupContext.new(view_paths, {}, ["test"])
renderer = ActionView::Renderer.new(lookup_context)