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

metadata is not passed to service

Ref: 604fac6d71/activestorage/app/models/active_storage/blob.rb (L256-L264)

This fixes broken `GCSServiceTest`.
https://travis-ci.org/rails/rails/jobs/461868394#L6624-L6626

Follow up to  #34576.
This commit is contained in:
yuuji.yaginuma 2018-12-01 09:12:55 +09:00
parent 604fac6d71
commit 6ca2f2acb2

View file

@ -55,8 +55,7 @@ module ActiveStorage::Service::SharedServiceTests
StringIO.new(data),
checksum: Digest::MD5.base64digest(data),
filename: "racecar.jpg",
content_type: "image/jpg",
metadata: { metadata: true }
content_type: "image/jpg"
)
assert_equal data, @service.download(key)