changed name used when project or file uploaded, this changed when

we started using https://github.com/expressjs/multer

* originalname - Name of the file on the user's computer
* name - Renamed file name
This commit is contained in:
Henry Oswald
2015-07-01 15:28:49 +01:00
parent 3ab57f6830
commit 4f0b922a5d
2 changed files with 7 additions and 6 deletions
@@ -29,7 +29,7 @@ describe "ProjectUploadController", ->
@req.files =
qqfile:
path: @path
name: @name
originalname: @name
@req.session =
user:
_id: @user_id
@@ -102,7 +102,7 @@ describe "ProjectUploadController", ->
@req.files =
qqfile:
path: @path
name: @name
originalname: @name
@req.params =
Project_id: @project_id
@req.query =
@@ -173,7 +173,7 @@ describe "ProjectUploadController", ->
describe "with a bad request", ->
beforeEach ->
@req.files.qqfile.name = ""
@req.files.qqfile.originalname = ""
@ProjectUploadController.uploadFile @req, @res
it "should return a a non success response", ->