 fs = require 'fs-plus'
 path = require 'path'
 Composer = require '../lib/composer'
-LatexmkBuilder = require '../lib/builders/latexmk'
 
-describe "Composer", ->
-  [composer, fixturesPath] = []
+fdescribe "Composer", ->
+  [fixturesPath, composer, mockBuilder, statusCode] = []
 
   beforeEach ->
     fixturesPath = helpers.cloneFixtures()
     composer = new Composer()
+
+    mockBuilder = jasmine.createSpyObj('MockBuilder', ['constructArgs', 'run', 'parseLogFile'])
+    mockBuilder.constructArgs.andReturn([])
+
+    statusCode = 0
+    mockBuilder.run.andCallFake (args, callback) -> callback(statusCode)
 
   describe "build", ->
     [originalTimeoutInterval] = []


      runs ->
        expect(composer.showError).toHaveBeenCalled()


    it "does nothing for unsupported file extensions", ->
      spyOn(composer, 'build').andCallThrough()

      [editor, result] = []
      waitsForPromise ->
