Add basic test case for UploadRecovery.

This commit is contained in:
Guo Xiang Tan
2018-09-13 13:24:08 +08:00
parent 49f1f10f75
commit d99dd840e4
2 changed files with 50 additions and 0 deletions

View File

@ -47,6 +47,8 @@ class UploadRecovery
end
def recover_from_local(post:, sha1:)
return unless sha1.present?
public_path = Rails.root.join("public")
@paths ||= begin