     it "should not be relative to cwd and return false", ->
       atom.config.set("coffee-compile.cwd", "spec")
       atom.config.set("coffee-compile.source", ["."])
-      cwdTestPath = "/home/test/github/coffee-compile/lib/more/folder/fs-util.coffee"
+      cwdTestPath = __dirname + "/lib/more/folder/fs-util.coffee"
 
       output = fsUtil.isPathInSrc cwdTestPath
       expect(output).toBe false

  describe "toExt", ->
    it "should convert to js extension", ->
      output = fsUtil.toExt testPath, 'js'
      expect(output).toBe "/home/test/github/coffee-compile/lib/fs-util.js"

  describe "resolvePath", ->
    beforeEach ->
      atom.project.setPaths(["/home/test/github/coffee-compile"])

    afterEach ->
      atom.config.unset('coffee-compile')

      atom.config.set("coffee-compile.destination", "test/folder")

      output = fsUtil.resolvePath testPath
      expect(output).toBe __dirname + "/test/folder/lib/fs-util.coffee"

    it "should flatten path", ->
      atom.config.set("coffee-compile.flatten", true)
      output = fsUtil.resolvePath testPath
      expect(output).toBe __dirname + "/fs-util.coffee"

  describe "writeFile", ->
    editor = null
