提交 e4401c64 编写于 作者: S Sharang Dashputre

Fix a ContentNegotiation test description

上级 6e94127d
......@@ -25,7 +25,7 @@ class TestContentNegotiation < Rack::TestCase
assert_body "Hello world text/html!"
end
test "A js or */* Accept header on xhr will return HTML" do
test "A js or */* Accept header on xhr will return JavaScript" do
get "/content_negotiation/basic/hello", headers: { "HTTP_ACCEPT" => "text/javascript, */*" }, xhr: true
assert_body "Hello world text/javascript!"
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册