test/user_data.rb in progstr-filer-0.8.9 vs test/user_data.rb in progstr-filer-0.8.10
- old
+ new
@@ -23,9 +23,10 @@
$lastDeletedAtachment = nil
class MockUploader < Progstr::Filer::Uploader
def upload_attachment(attachment)
$lastUploadedAtachment = attachment
+ attachment.mark_uploaded!
end
def delete_attachment(attachment)
$lastDeletedAtachment = attachment
end
end