aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2019-02-26 14:44:33 -0500
committerGitHub <noreply@github.com>2019-02-26 14:44:33 -0500
commit3ee0dabb8443c636bf3b51ef051b4b94ee2af460 (patch)
tree1837aad4184e823ddf01ffeece204173568a0d29
parent383efb0138a8e8b69c85d787fae5fc28e214e6a3 (diff)
parentf06e14696522f5f6ad2741c5b5aea7c40cae5416 (diff)
downloadrails-3ee0dabb8443c636bf3b51ef051b4b94ee2af460.tar.gz
rails-3ee0dabb8443c636bf3b51ef051b4b94ee2af460.tar.bz2
rails-3ee0dabb8443c636bf3b51ef051b4b94ee2af460.zip
Merge pull request #35422 from ricardotk002/fix-indentation-ad-routing
Fix code examples' indentation in ActionDispatch::Routing
-rw-r--r--actionpack/lib/action_dispatch/routing.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/actionpack/lib/action_dispatch/routing.rb b/actionpack/lib/action_dispatch/routing.rb
index f832719f19..d78b1c4f71 100644
--- a/actionpack/lib/action_dispatch/routing.rb
+++ b/actionpack/lib/action_dispatch/routing.rb
@@ -210,8 +210,8 @@ module ActionDispatch
# === +assert_routing+
#
# def test_movie_route_properly_splits
- # opts = {controller: "plugin", action: "checkout", id: "2"}
- # assert_routing "plugin/checkout/2", opts
+ # opts = {controller: "plugin", action: "checkout", id: "2"}
+ # assert_routing "plugin/checkout/2", opts
# end
#
# +assert_routing+ lets you test whether or not the route properly resolves into options.
@@ -219,8 +219,8 @@ module ActionDispatch
# === +assert_recognizes+
#
# def test_route_has_options
- # opts = {controller: "plugin", action: "show", id: "12"}
- # assert_recognizes opts, "/plugins/show/12"
+ # opts = {controller: "plugin", action: "show", id: "12"}
+ # assert_recognizes opts, "/plugins/show/12"
# end
#
# Note the subtle difference between the two: +assert_routing+ tests that