aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/journey
diff options
context:
space:
mode:
authorArthur Neves <arthurnn@gmail.com>2015-06-17 20:17:44 +0200
committerArthur Neves <arthurnn@gmail.com>2015-06-17 20:17:44 +0200
commitffba8f79a2332398d4848d8987a42567001cbdf4 (patch)
tree312a8a0bd7eb49e781eb2f6f37991521826783f8 /actionpack/test/journey
parent15de4b6d1edd09dd8b5810d6538012461f4e46b0 (diff)
downloadrails-ffba8f79a2332398d4848d8987a42567001cbdf4.tar.gz
rails-ffba8f79a2332398d4848d8987a42567001cbdf4.tar.bz2
rails-ffba8f79a2332398d4848d8987a42567001cbdf4.zip
Revert "Merge pull request #20584 from arthurnn/fix_url"
This reverts commit 0b3397872582f2cf1bc6960960a6393f477c55e6, reversing changes made to 56d52e3749180e6c1dcf7166adbad967470aa78b. As pointed out on the PR, this will hide development mistakes too, which is not ideal.
Diffstat (limited to 'actionpack/test/journey')
-rw-r--r--actionpack/test/journey/router_test.rb7
1 files changed, 0 insertions, 7 deletions
diff --git a/actionpack/test/journey/router_test.rb b/actionpack/test/journey/router_test.rb
index c4bffa2f15..802fb93c69 100644
--- a/actionpack/test/journey/router_test.rb
+++ b/actionpack/test/journey/router_test.rb
@@ -219,13 +219,6 @@ module ActionDispatch
assert_equal 404, resp.first
end
- def test_invalid_url_path
- routes = Class.new { include ActionDispatch::Routing::Redirection }.new
- route = routes.redirect("/foo/bar/%{id}")
- resp = route.serve(rails_env({ 'REQUEST_METHOD' => 'GET', 'PATH_INFO' => '/foo/(function(){})' }))
- assert_equal 400, resp.first
- end
-
def test_clear_trailing_slash_from_script_name_on_root_unanchored_routes
route_set = Routing::RouteSet.new
mapper = Routing::Mapper.new route_set