         Request.receiveJSON.returns(Promise.reject(new Error("errorMessage")))
 
         model.fetch()
-          .then(->
-            fail("Promise should not have been resolved.")
+          .then(=>
+            @fail("Promise should not have been resolved.")
             done()
           ).catch( (error) ->
             expect(error.message).toBe("errorMessage")


        model.fetch()
          .then(done)
          .catch((error) ->
            fail(error.message)
            done()
          )


      customLayers : []
}

Model = require("../../oxalis/model")

describe "Model", ->
