diff options
author | Aaron Patterson <tenderlove@github.com> | 2019-02-06 18:08:36 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-06 18:08:36 -0800 |
commit | 973b62dcddd2db45047d32321e6887c841fc5ccf (patch) | |
tree | 791524f548ebe2b18b4cb7c704962a7a55150e6e /actionview/test/template/translation_helper_test.rb | |
parent | d0037daa3738ac754781ce5e55778a2cf9d3d2f7 (diff) | |
parent | 570bcdaa65987ac2f5cc84fdf83678cd5c0bb7d8 (diff) | |
download | rails-973b62dcddd2db45047d32321e6887c841fc5ccf.tar.gz rails-973b62dcddd2db45047d32321e6887c841fc5ccf.tar.bz2 rails-973b62dcddd2db45047d32321e6887c841fc5ccf.zip |
Merge pull request #35036 from rails/av-base-subclass
Move compiled ERB to an AV::Base subclass
Diffstat (limited to 'actionview/test/template/translation_helper_test.rb')
-rw-r--r-- | actionview/test/template/translation_helper_test.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/actionview/test/template/translation_helper_test.rb b/actionview/test/template/translation_helper_test.rb index d04e68e182..23fc9850c4 100644 --- a/actionview/test/template/translation_helper_test.rb +++ b/actionview/test/template/translation_helper_test.rb @@ -36,7 +36,10 @@ class TranslationHelperTest < ActiveSupport::TestCase } } ) - @view = ::ActionView::Base.with_view_paths(ActionController::Base.view_paths, {}) + view_paths = ActionController::Base.view_paths + view_paths.each(&:clear_cache) + ActionView::LookupContext.fallbacks.each(&:clear_cache) + @view = ::ActionView::Base.with_empty_template_cache.with_view_paths(view_paths, {}) end teardown do |