Permalink
Browse files

Merge pull request #29095 from y-yagi/fix_test_with_rack_203

Fix `TestInvalidUrls` with rack 2.0.3
  • Loading branch information...
guilleiguaran committed May 16, 2017
2 parents d7a0d28 + e605921 commit 661f537b15026a35234db8a7b9386b4335198a8a
Showing with 7 additions and 7 deletions.
  1. +1 −1 Gemfile.lock
  2. +6 −6 actionpack/test/dispatch/routing_test.rb
View
@@ -249,7 +249,7 @@ GEM
simple_uuid
que (0.12.0)
racc (1.4.14)
rack (2.0.1)
rack (2.0.3)
rack-cache (1.6.1)
rack (>= 0.4)
rack-protection (1.5.3)
@@ -4419,7 +4419,7 @@ def show
end
end
test "invalid UTF-8 encoding returns a 400 Bad Request" do
test "invalid UTF-8 encoding is treated as ASCII 8BIT encode" do
with_routing do |set|
set.draw do
get "/bar/:id", to: redirect("/foo/show/%{id}")
@@ -4435,19 +4435,19 @@ def show
end
get "/%E2%EF%BF%BD%A6"
assert_response :bad_request
assert_response :not_found
get "/foo/%E2%EF%BF%BD%A6"
assert_response :bad_request
assert_response :not_found
get "/foo/show/%E2%EF%BF%BD%A6"
assert_response :bad_request
assert_response :ok
get "/bar/%E2%EF%BF%BD%A6"
assert_response :bad_request
assert_response :redirect
get "/foobar/%E2%EF%BF%BD%A6"
assert_response :bad_request
assert_response :ok
end
end
end

0 comments on commit 661f537

Please sign in to comment.