diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/models/blob_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/models/blob_test.rb b/test/models/blob_test.rb index a5b291d5db..b51be7a93b 100644 --- a/test/models/blob_test.rb +++ b/test/models/blob_test.rb @@ -11,6 +11,12 @@ class ActiveStorage::BlobTest < ActiveSupport::TestCase assert_equal Digest::MD5.base64digest(data), blob.checksum end + test "inquery type" do + blob = create_blob data: "Hello world!" + assert blob.type.text? + assert_not blob.type.audio? + end + test "download yields chunks" do blob = create_blob data: "a" * 75.kilobytes chunks = [] |