We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
LogSubscriber
Rails::ViewRendering
1 parent bfa6c3f commit ad40aaeCopy full SHA for ad40aae
lib/rspec/rails/view_rendering.rb
@@ -77,8 +77,6 @@ def render_template(_event)
77
end
78
79
80
- LogSubscriber.attach_to(:action_view)
81
-
82
# Delegates all methods to the submitted resolver and for all methods
83
# that return a collection of `ActionView::Template` instances, return
84
# templates with modified source
@@ -150,6 +148,9 @@ def _path_decorator(*paths)
150
148
151
149
152
included do
+ # Make sure to log when template rendering was prevented by rspec-rails
+ EmptyTemplateResolver::LogSubscriber.attach_to(:action_view)
153
+
154
before do
155
unless render_views?
156
@_original_path_set = controller.class.view_paths
0 commit comments