Fix tests & CC

This commit is contained in:
Alex Sherman 2020-08-28 12:58:52 +05:00
parent 0161556c54
commit 66e05c7791
4 changed files with 9 additions and 8 deletions

View file

@ -43,7 +43,7 @@ class LegalDocument < ApplicationRecord
break unless File.file?(path)
end
File.open(path, 'wb') { |f| f.write(binary) } if !Rails.env.test?
File.open(path, 'wb') { |f| f.write(binary) } unless Rails.env.test?
self.path = path
self.checksum = digest
end