提交 060ed201 编写于 作者: G George Claghorn

Update test to reflect GCS direct upload header change

上级 f9a58390
......@@ -62,7 +62,7 @@ class ActiveStorage::GCSDirectUploadsControllerTest < ActionDispatch::Integratio
assert_equal checksum, details["checksum"]
assert_equal "text/plain", details["content_type"]
assert_match %r{storage\.googleapis\.com/#{@config[:bucket]}}, details["direct_upload"]["url"]
assert_equal({ "Content-Type" => "", "Content-MD5" => checksum }, details["direct_upload"]["headers"])
assert_equal({ "Content-MD5" => checksum }, details["direct_upload"]["headers"])
end
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册