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 a0c52b0 commit 4a45e4dCopy full SHA for 4a45e4d
lib/rspec/rails/view_path_builder.rb
@@ -20,7 +20,9 @@ def initialize(route_set)
20
# view_path_builder.path_for({ :controller => 'posts', :action => 'delete' })
21
# # => nil
22
def path_for(path_params)
23
- url_for(path_params.merge(:only_path => true)) rescue nil
+ url_for(path_params.merge(:only_path => true))
24
+ rescue => e
25
+ e.message
26
end
27
28
0 commit comments