mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
🚨 Make the cops happy 🚨
This commit is contained in:
parent
7d0ce785d4
commit
6dcd43b2a8
3 changed files with 3 additions and 3 deletions
|
@ -7,7 +7,7 @@ class CompiledTemplatesTest < ActiveSupport::TestCase
|
|||
|
||||
def setup
|
||||
super
|
||||
view_paths = ActionController::Base.view_paths
|
||||
view_paths = ActionController::Base.view_paths
|
||||
view_paths.each(&:clear_cache)
|
||||
ActionView::LookupContext.fallbacks.each(&:clear_cache)
|
||||
@view_class = ActionView::Base.with_empty_template_cache
|
||||
|
|
|
@ -11,7 +11,7 @@ class AVLogSubscriberTest < ActiveSupport::TestCase
|
|||
def setup
|
||||
super
|
||||
|
||||
view_paths = ActionController::Base.view_paths
|
||||
view_paths = ActionController::Base.view_paths
|
||||
view_paths.each(&:clear_cache)
|
||||
ActionView::LookupContext.fallbacks.each(&:clear_cache)
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ class TranslationHelperTest < ActiveSupport::TestCase
|
|||
}
|
||||
}
|
||||
)
|
||||
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, {})
|
||||
|
|
Loading…
Reference in a new issue