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.
path_for
1 parent dd74667 commit 442f6d1Copy full SHA for 442f6d1
lib/rspec/rails/view_path_builder.rb
@@ -18,7 +18,7 @@ def initialize(route_set)
18
# @example
19
# # path cannot be built because the params are missing a required element (:id)
20
# view_path_builder.path_for({ :controller => 'posts', :action => 'delete' })
21
- # # => nil
+ # # => ActionController::UrlGenerationError: No route matches {:action=>"delete", :controller=>"posts"}
22
def path_for(path_params)
23
url_for(path_params.merge(:only_path => true))
24
rescue => e
0 commit comments