diff options
author | George Claghorn <george.claghorn@gmail.com> | 2017-08-17 11:53:32 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-17 11:53:32 -0400 |
commit | d11d629feb2e848d2643f34fc56b15d5e7e50394 (patch) | |
tree | a9610ef492c46c16d8a2dba88d6b93c5fa145545 /activestorage/test | |
parent | 8a0c69eeebc1bf68520735f9bf052f5acf70f99b (diff) | |
parent | 267fdcc4a4de0675fb4fffdbc1b711b2146a6ea6 (diff) | |
download | rails-d11d629feb2e848d2643f34fc56b15d5e7e50394.tar.gz rails-d11d629feb2e848d2643f34fc56b15d5e7e50394.tar.bz2 rails-d11d629feb2e848d2643f34fc56b15d5e7e50394.zip |
Merge pull request #30292 from maclover7/jm-ast-purge
Add missing test for Blob#purge
Diffstat (limited to 'activestorage/test')
-rw-r--r-- | activestorage/test/models/blob_test.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/activestorage/test/models/blob_test.rb b/activestorage/test/models/blob_test.rb index 1c50d18994..99f2fb20b0 100644 --- a/activestorage/test/models/blob_test.rb +++ b/activestorage/test/models/blob_test.rb @@ -41,6 +41,13 @@ class ActiveStorage::BlobTest < ActiveSupport::TestCase end end + test "purge removes from external service" do + blob = create_blob + + blob.purge + assert_not ActiveStorage::Blob.service.exist?(blob.key) + end + private def expected_url_for(blob, disposition: :inline) query_string = { content_type: blob.content_type, disposition: disposition }.to_param |