diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2018-11-28 10:16:07 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2018-11-28 10:16:07 +0900 |
commit | c2ef8bbf522dc69b3f3c270976bbb9779280e605 (patch) | |
tree | f94bb1212889b25c6fe1c5fb79edd1876866a468 /activestorage | |
parent | 7e7a60bd3fbfac9b02884f404bd31f3456f4022d (diff) | |
download | rails-c2ef8bbf522dc69b3f3c270976bbb9779280e605.tar.gz rails-c2ef8bbf522dc69b3f3c270976bbb9779280e605.tar.bz2 rails-c2ef8bbf522dc69b3f3c270976bbb9779280e605.zip |
Fix broken `ActiveStorage::BlobTest`
`ActiveStorage::Filename#parameters` was removed by #33829.
Diffstat (limited to 'activestorage')
-rw-r--r-- | activestorage/test/models/blob_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activestorage/test/models/blob_test.rb b/activestorage/test/models/blob_test.rb index 0eac622d72..1503f5fc50 100644 --- a/activestorage/test/models/blob_test.rb +++ b/activestorage/test/models/blob_test.rb @@ -196,7 +196,7 @@ class ActiveStorage::BlobTest < ActiveSupport::TestCase filename ||= blob.filename content_type ||= blob.content_type - query = { disposition: disposition.to_s + "; #{filename.parameters}", content_type: content_type } + query = { disposition: ActionDispatch::Http::ContentDisposition.format(disposition: disposition, filename: filename.sanitized), content_type: content_type } key_params = { key: blob.key }.merge(query) "https://example.com/rails/active_storage/disk/#{ActiveStorage.verifier.generate(key_params, expires_in: 5.minutes, purpose: :blob_key)}/#{filename}?#{query.to_param}" |