aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/dispatch/routing
diff options
context:
space:
mode:
authorbrainopia <brainopia@evilmartians.com>2015-02-23 19:51:30 +0300
committerbrainopia <brainopia@evilmartians.com>2015-02-23 19:57:01 +0300
commit321db4aa2edf46b8cf54c99bf3b97b48b7099dcf (patch)
treec2a07a82692e7c5ed546c02e7340ccb429d62842 /actionpack/test/dispatch/routing
parente71f5dad4e0d27afbcc091173bee20bd6f4d2a4e (diff)
downloadrails-321db4aa2edf46b8cf54c99bf3b97b48b7099dcf.tar.gz
rails-321db4aa2edf46b8cf54c99bf3b97b48b7099dcf.tar.bz2
rails-321db4aa2edf46b8cf54c99bf3b97b48b7099dcf.zip
Change filter on /rails/info/routes to use an actual path regexp from rails
Change filter on /rails/info/routes to use an actual path regexp from rails and not approximate javascript version. Oniguruma supports much more extensive list of features than javascript regexp engine. Fixes #18402.
Diffstat (limited to 'actionpack/test/dispatch/routing')
-rw-r--r--actionpack/test/dispatch/routing/inspector_test.rb8
1 files changed, 0 insertions, 8 deletions
diff --git a/actionpack/test/dispatch/routing/inspector_test.rb b/actionpack/test/dispatch/routing/inspector_test.rb
index 3d3d4b74ae..3df022c64b 100644
--- a/actionpack/test/dispatch/routing/inspector_test.rb
+++ b/actionpack/test/dispatch/routing/inspector_test.rb
@@ -26,14 +26,6 @@ module ActionDispatch
inspector.format(ActionDispatch::Routing::ConsoleFormatter.new, options[:filter]).split("\n")
end
- def test_json_regexp_converter
- @set.draw do
- get '/cart', :to => 'cart#show'
- end
- route = ActionDispatch::Routing::RouteWrapper.new(@set.routes.first)
- assert_equal "^\\/cart(?:\\.([^\\/.?]+))?$", route.json_regexp
- end
-
def test_displaying_routes_for_engines
engine = Class.new(Rails::Engine) do
def self.inspect