diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2018-12-01 09:12:55 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2018-12-01 09:12:55 +0900 |
commit | 6ca2f2acb2427bf8bbad9c4fb5d0316fb3d19e85 (patch) | |
tree | f9770718036b637ecbba0da673c0234856445d00 /activestorage/test/service | |
parent | 604fac6d7191fca102380b1a5f5eb9c619fb407f (diff) | |
download | rails-6ca2f2acb2427bf8bbad9c4fb5d0316fb3d19e85.tar.gz rails-6ca2f2acb2427bf8bbad9c4fb5d0316fb3d19e85.tar.bz2 rails-6ca2f2acb2427bf8bbad9c4fb5d0316fb3d19e85.zip |
`metadata` is not passed to service
Ref: https://github.com/rails/rails/blob/604fac6d7191fca102380b1a5f5eb9c619fb407f/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.
Diffstat (limited to 'activestorage/test/service')
-rw-r--r-- | activestorage/test/service/shared_service_tests.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/activestorage/test/service/shared_service_tests.rb b/activestorage/test/service/shared_service_tests.rb index 26e72029c8..b97030b320 100644 --- a/activestorage/test/service/shared_service_tests.rb +++ b/activestorage/test/service/shared_service_tests.rb @@ -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) |