|
@@ -51,7 +51,7 @@ describe "CompileManager", ->
|
|
|
@env = {}
|
|
@env = {}
|
|
|
@Settings.compileDir = "compiles"
|
|
@Settings.compileDir = "compiles"
|
|
|
@compileDir = "#{@Settings.path.compilesDir}/#{@project_id}-#{@user_id}"
|
|
@compileDir = "#{@Settings.path.compilesDir}/#{@project_id}-#{@user_id}"
|
|
|
- @ResourceWriter.syncResourcesToDisk = sinon.stub().callsArg(3)
|
|
|
|
|
|
|
+ @ResourceWriter.syncResourcesToDisk = sinon.stub().callsArg(2)
|
|
|
@LatexRunner.runLatex = sinon.stub().callsArg(2)
|
|
@LatexRunner.runLatex = sinon.stub().callsArg(2)
|
|
|
@OutputFileFinder.findOutputFiles = sinon.stub().callsArgWith(2, null, @output_files)
|
|
@OutputFileFinder.findOutputFiles = sinon.stub().callsArgWith(2, null, @output_files)
|
|
|
@OutputCacheManager.saveOutputFiles = sinon.stub().callsArgWith(2, null, @build_files)
|
|
@OutputCacheManager.saveOutputFiles = sinon.stub().callsArgWith(2, null, @build_files)
|
|
@@ -64,7 +64,7 @@ describe "CompileManager", ->
|
|
|
|
|
|
|
|
it "should write the resources to disk", ->
|
|
it "should write the resources to disk", ->
|
|
|
@ResourceWriter.syncResourcesToDisk
|
|
@ResourceWriter.syncResourcesToDisk
|
|
|
- .calledWith(@project_id, @resources, @compileDir)
|
|
|
|
|
|
|
+ .calledWith(@request, @compileDir)
|
|
|
.should.equal true
|
|
.should.equal true
|
|
|
|
|
|
|
|
it "should run LaTeX", ->
|
|
it "should run LaTeX", ->
|