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.
1 parent a294ffd commit 13df8bbCopy full SHA for 13df8bb
lib/rspec/rails/example/view_example_group.rb
@@ -152,6 +152,9 @@ def _include_controller_helpers
152
view.lookup_context.prefixes << _controller_path
153
end
154
155
+ # fixes bug with differing formats
156
+ view.lookup_context.view_paths.each(&:clear_cache)
157
+
158
controller.controller_path = _controller_path
159
controller.request.path_parameters[:controller] = _controller_path
160
controller.request.path_parameters[:action] = _inferred_action unless _inferred_action =~ /^_/
0 commit comments