aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage/test/test_helper.rb
diff options
context:
space:
mode:
authorGeorge Claghorn <george.claghorn@gmail.com>2018-05-08 18:46:08 -0400
committerGitHub <noreply@github.com>2018-05-08 18:46:08 -0400
commit38ea7bb74d5c3d2ae992c35b6eb731d059aa772a (patch)
tree8be2f5c25a30ea0f1ad42a8ce74992ac5aa2cdab /activestorage/test/test_helper.rb
parent834be61e61a1ed55f056cdff12ffe4cdcaa7ca65 (diff)
parent8e98bb7758f081622ab5c4eebf3730cce22ee627 (diff)
downloadrails-38ea7bb74d5c3d2ae992c35b6eb731d059aa772a.tar.gz
rails-38ea7bb74d5c3d2ae992c35b6eb731d059aa772a.tar.bz2
rails-38ea7bb74d5c3d2ae992c35b6eb731d059aa772a.zip
Merge pull request #32833 from ryandav/activestorage_blob_set_content_type
Add option to ActiveStorage::Blob to set extract_content_type_from_io
Diffstat (limited to 'activestorage/test/test_helper.rb')
-rw-r--r--activestorage/test/test_helper.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activestorage/test/test_helper.rb b/activestorage/test/test_helper.rb
index 499d955a2f..573a8e0b0b 100644
--- a/activestorage/test/test_helper.rb
+++ b/activestorage/test/test_helper.rb
@@ -50,8 +50,8 @@ class ActiveSupport::TestCase
end
private
- def create_blob(data: "Hello world!", filename: "hello.txt", content_type: "text/plain")
- ActiveStorage::Blob.create_after_upload! io: StringIO.new(data), filename: filename, content_type: content_type
+ def create_blob(data: "Hello world!", filename: "hello.txt", content_type: "text/plain", identify: true)
+ ActiveStorage::Blob.create_after_upload! io: StringIO.new(data), filename: filename, content_type: content_type, identify: identify
end
def create_file_blob(filename: "racecar.jpg", content_type: "image/jpeg", metadata: nil)