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 authored and rafaelfranca committed May 16, 2017
1 parent 6f0089d commit d589de9fcfbc6cca8fef779c1fe8e29b50b89edd
Showing with 5 additions and 5 deletions.
  1. +5 −5 actionpack/test/dispatch/routing_test.rb
@@ -4196,7 +4196,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}")
@@ -4206,16 +4206,16 @@ 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
end
end
end

0 comments on commit d589de9

Please sign in to comment.