diff --git a/modules/storages/spec/requests/api/v3/file_links/file_links_spec.rb b/modules/storages/spec/requests/api/v3/file_links/file_links_spec.rb index 99af1672f8..6e28698a0f 100644 --- a/modules/storages/spec/requests/api/v3/file_links/file_links_spec.rb +++ b/modules/storages/spec/requests/api/v3/file_links/file_links_spec.rb @@ -171,6 +171,7 @@ describe 'API v3 file links resource', type: :request do it 'is successful' do expect(subject.status).to be 204 + expect(::Storages::FileLink.exists?(id: file_link.id)).to be false end context 'if user has no view permissions' do