get local file writer tests using fake settings

This commit is contained in:
Henry Oswald 2014-06-17 13:33:36 +01:00
parent c8c758642a
commit 04bffaeceb

View file

@ -18,11 +18,15 @@ describe "LocalFileWriter", ->
@fs =
createWriteStream : sinon.stub().returns(@writeStream)
unlink: sinon.stub()
@settings =
path:
uploadFolder:"somewhere"
@writer = SandboxedModule.require modulePath, requires:
"fs": @fs
"logger-sharelatex":
log:->
err:->
"settings-sharelatex":@settings
@stubbedFsPath = "something/uploads/eio2k1j3"
describe "writeStrem", ->