File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ def request_method
146
146
end
147
147
148
148
# Returns the URI pattern of the matched route for the request,
149
- # using the same format as ` bin/rails routes` :
149
+ # using the same format as <tt> bin/rails routes</tt> :
150
150
#
151
151
# request.route_uri_pattern # => "/:controller(/:action(/:id))(.:format)"
152
152
def route_uri_pattern
Original file line number Diff line number Diff line change @@ -360,6 +360,11 @@ def test_route_uri_pattern
360
360
"/:controller(/:action(/:id))(.:format)" ,
361
361
controller . request . route_uri_pattern
362
362
)
363
+
364
+ assert_equal (
365
+ "/:controller(/:action(/:id))(.:format)" ,
366
+ controller . request . get_header ( "action_dispatch.route_uri_pattern" )
367
+ )
363
368
end
364
369
365
370
def test_route_with_colon_first
You can’t perform that action at this time.
0 commit comments