Skip to content

Commit 0c71b60

Browse files
zzakrafaelfranca
andcommitted
Add test for request.get_header("route_uri_pattern")
Co-authored-by: Rafael Mendonça França <[email protected]>
1 parent f38c21b commit 0c71b60

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

actionpack/test/controller/routing_test.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,11 @@ def test_route_uri_pattern
360360
"/:controller(/:action(/:id))(.:format)",
361361
controller.request.route_uri_pattern
362362
)
363+
364+
assert_equal(
365+
"/:controller(/:action(/:id))(.:format)",
366+
controller.request.get_header("action_dispatch.route_uri_pattern")
367+
)
363368
end
364369

365370
def test_route_with_colon_first

0 commit comments

Comments
 (0)