aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/dispatch
diff options
context:
space:
mode:
authorxithan <philipp.kuehl@gmail.com>2019-04-15 13:21:02 +0200
committerxithan <philipp.kuehl@gmail.com>2019-04-15 15:11:13 +0200
commit64ed91f5aad74cdfa93dc08c2f5899a8e0555f4c (patch)
treea2d395acdebaf7c24d0e066498dd20f9c6b6c3bb /actionpack/test/dispatch
parenta8328f61b6b958140738d5c31438132b20089c93 (diff)
downloadrails-64ed91f5aad74cdfa93dc08c2f5899a8e0555f4c.tar.gz
rails-64ed91f5aad74cdfa93dc08c2f5899a8e0555f4c.tar.bz2
rails-64ed91f5aad74cdfa93dc08c2f5899a8e0555f4c.zip
mounted routes with non-word characters
Diffstat (limited to 'actionpack/test/dispatch')
-rw-r--r--actionpack/test/dispatch/mount_test.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/actionpack/test/dispatch/mount_test.rb b/actionpack/test/dispatch/mount_test.rb
index e42ea89f6f..758cee9930 100644
--- a/actionpack/test/dispatch/mount_test.rb
+++ b/actionpack/test/dispatch/mount_test.rb
@@ -27,6 +27,7 @@ class TestRoutingMount < ActionDispatch::IntegrationTest
}
mount SprocketsApp, at: "/sprockets"
+ mount SprocketsApp, at: "/star*"
mount SprocketsApp => "/shorthand"
mount SinatraLikeApp, at: "/fakeengine", as: :fake
@@ -58,6 +59,14 @@ class TestRoutingMount < ActionDispatch::IntegrationTest
def test_mounting_at_root_path
get "/omg"
assert_equal " -- /omg", response.body
+
+ get "/~omg"
+ assert_equal " -- /~omg", response.body
+ end
+
+ def test_mounting_at_path_with_non_word_character
+ get "/star*/omg"
+ assert_equal "/star* -- /omg", response.body
end
def test_mounting_sets_script_name