properly delete file in case of errors in StoredFile.create
authorLunar <lunar@anargeek.net>
Tue, 6 Mar 2012 16:14:29 +0000 (17:14 +0100)
committerLunar <lunar@anargeek.net>
Fri, 23 Mar 2012 17:11:28 +0000 (18:11 +0100)
commit9b5840c6d4029f047334585f6242c2bc760badd3
tree587cfed2bc3ae47266caf7647543d63aa4d7519e
parentc522ff8a0c02bbf6d18dd2e78bdefa2f7416a510
properly delete file in case of errors in StoredFile.create

This means that Depot.add_file does not have to care about removing leftover
files.
lib/coquelicot/depot.rb
lib/coquelicot/stored_file.rb
spec/coquelicot/stored_file_spec.rb