1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fix code examples' indentation in ActionDispatch::Routing [ci skip]

This commit is contained in:
Ricardo Díaz 2019-02-26 14:04:08 -05:00
parent d333d85254
commit f06e146965

View file

@ -210,8 +210,8 @@ module ActionDispatch
# === +assert_routing+ # === +assert_routing+
# #
# def test_movie_route_properly_splits # def test_movie_route_properly_splits
# opts = {controller: "plugin", action: "checkout", id: "2"} # opts = {controller: "plugin", action: "checkout", id: "2"}
# assert_routing "plugin/checkout/2", opts # assert_routing "plugin/checkout/2", opts
# end # end
# #
# +assert_routing+ lets you test whether or not the route properly resolves into options. # +assert_routing+ lets you test whether or not the route properly resolves into options.
@ -219,8 +219,8 @@ module ActionDispatch
# === +assert_recognizes+ # === +assert_recognizes+
# #
# def test_route_has_options # def test_route_has_options
# opts = {controller: "plugin", action: "show", id: "12"} # opts = {controller: "plugin", action: "show", id: "12"}
# assert_recognizes opts, "/plugins/show/12" # assert_recognizes opts, "/plugins/show/12"
# end # end
# #
# Note the subtle difference between the two: +assert_routing+ tests that # Note the subtle difference between the two: +assert_routing+ tests that