mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Add missing test for Blob#purge
This commit is contained in:
parent
f84019cd63
commit
267fdcc4a4
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue