aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/dispatch
diff options
context:
space:
mode:
authorAaron Patterson <tenderlove@github.com>2019-02-05 17:43:14 -0800
committerGitHub <noreply@github.com>2019-02-05 17:43:14 -0800
commit3127f5783ef3f07a05476b4a036d069d96def603 (patch)
treecb19146d29f87f49157b891f2d89460f53d5ca77 /actionpack/test/dispatch
parent9483cdee0a3ed9c686e338f079b0e369597b1211 (diff)
parent1315582b374f33becfb325bf339674a0a5e6d141 (diff)
downloadrails-3127f5783ef3f07a05476b4a036d069d96def603.tar.gz
rails-3127f5783ef3f07a05476b4a036d069d96def603.tar.bz2
rails-3127f5783ef3f07a05476b4a036d069d96def603.zip
Merge pull request #35162 from silppuri/fix-incorrectly-matching-unachored-paths
Fix incorrectly matching unanchored paths
Diffstat (limited to 'actionpack/test/dispatch')
-rw-r--r--actionpack/test/dispatch/mount_test.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/actionpack/test/dispatch/mount_test.rb b/actionpack/test/dispatch/mount_test.rb
index f6cf653980..e42ea89f6f 100644
--- a/actionpack/test/dispatch/mount_test.rb
+++ b/actionpack/test/dispatch/mount_test.rb
@@ -80,6 +80,12 @@ class TestRoutingMount < ActionDispatch::IntegrationTest
assert_equal "/shorthand -- /omg", response.body
end
+ def test_mounting_does_not_match_similar_paths
+ get "/shorthandomg"
+ assert_not_equal "/shorthand -- /omg", response.body
+ assert_equal " -- /shorthandomg", response.body
+ end
+
def test_mounting_works_with_via
get "/getfake"
assert_equal "OK", response.body