1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Update test to reflect direct upload header changes

This commit is contained in:
George Claghorn 2018-02-26 13:56:54 -05:00
parent 19672421ac
commit 87de79e9cc

View file

@ -62,7 +62,7 @@ if SERVICE_CONFIGURATIONS[:gcs]
assert_equal checksum, details["checksum"] assert_equal checksum, details["checksum"]
assert_equal "text/plain", details["content_type"] assert_equal "text/plain", details["content_type"]
assert_match %r{storage\.googleapis\.com/#{@config[:bucket]}}, details["direct_upload"]["url"] assert_match %r{storage\.googleapis\.com/#{@config[:bucket]}}, details["direct_upload"]["url"]
assert_equal({ "Content-Type" => "text/plain", "Content-MD5" => checksum }, details["direct_upload"]["headers"]) assert_equal({ "Content-Type" => "", "Content-MD5" => checksum }, details["direct_upload"]["headers"])
end end
end end
end end