提交 38dbc8e2 编写于 作者: Y yuuji.yaginuma
上级 c0ce055b
......@@ -44,7 +44,7 @@ class ActiveStorage::Service::GCSServiceTest < ActiveSupport::TestCase
url = @service.url(key, expires_in: 2.minutes, disposition: :inline, filename: ActiveStorage::Filename.new("test.txt"), content_type: "text/plain")
response = Net::HTTP.get_response(URI(url))
assert_equal "text/plain", response.header["Content-Type"]
assert_equal "text/plain", response.content_type
ensure
@service.delete key
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册