diff options
author | George Claghorn <george@basecamp.com> | 2017-11-13 16:36:39 -0500 |
---|---|---|
committer | George Claghorn <george@basecamp.com> | 2017-11-13 16:36:39 -0500 |
commit | 704a7e425ca99af1b778c764a86e5388647631dd (patch) | |
tree | 115382292c62a22a4ae2220b20f5dd94eba8ff70 /activestorage/test/test_helper.rb | |
parent | 233d6a2b563e34156c5fc2317c19dc1823447c18 (diff) | |
download | rails-704a7e425ca99af1b778c764a86e5388647631dd.tar.gz rails-704a7e425ca99af1b778c764a86e5388647631dd.tar.bz2 rails-704a7e425ca99af1b778c764a86e5388647631dd.zip |
Preserve existing metadata when analyzing a blob
Closes #31138.
Diffstat (limited to 'activestorage/test/test_helper.rb')
-rw-r--r-- | activestorage/test/test_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activestorage/test/test_helper.rb b/activestorage/test/test_helper.rb index 38408cdad3..55da781f2a 100644 --- a/activestorage/test/test_helper.rb +++ b/activestorage/test/test_helper.rb @@ -45,8 +45,8 @@ class ActiveSupport::TestCase ActiveStorage::Blob.create_after_upload! io: StringIO.new(data), filename: filename, content_type: content_type end - def create_file_blob(filename: "racecar.jpg", content_type: "image/jpeg") - ActiveStorage::Blob.create_after_upload! io: file_fixture(filename).open, filename: filename, content_type: content_type + def create_file_blob(filename: "racecar.jpg", content_type: "image/jpeg", metadata: nil) + ActiveStorage::Blob.create_after_upload! io: file_fixture(filename).open, filename: filename, content_type: content_type, metadata: metadata end def create_blob_before_direct_upload(filename: "hello.txt", byte_size:, checksum:, content_type: "text/plain") |