From 222db8af2156c480d1525dab6edfb234533916f0 Mon Sep 17 00:00:00 2001 From: Michael Bolin Date: Tue, 17 Feb 2015 10:09:57 -0800 Subject: [PATCH] `./script/grunt lint` and `temp.mkdirSync('atom-project')` instead of `'tmp'`. --- spec/project-spec.coffee | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/spec/project-spec.coffee b/spec/project-spec.coffee index ed4cd8c2f..a1e503751 100644 --- a/spec/project-spec.coffee +++ b/spec/project-spec.coffee @@ -15,12 +15,13 @@ describe "Project", -> describe "constructor", -> it "tries to update repositories when a new RepositoryProvider is registered", -> - atom.project.setPaths(["/tmp"]) + tmp = temp.mkdirSync('atom-project') + atom.project.setPaths([tmp]) expect(atom.project.getRepositories()).toEqual [null] expect(atom.project.repositoryProviders.length).toEqual 1 # Register a new RepositoryProvider. - dummyRepository = destroy: () -> + dummyRepository = destroy: -> repositoryProvider = repositoryForDirectory: (directory) -> Promise.resolve(dummyRepository) repositoryForDirectorySync: (directory) -> dummyRepository @@ -37,7 +38,7 @@ describe "Project", -> expect(repository).toBeTruthy() # Register a new RepositoryProvider. - dummyRepository = destroy: () -> + dummyRepository = destroy: -> repositoryProvider = repositoryForDirectory: (directory) -> Promise.resolve(dummyRepository) repositoryForDirectorySync: (directory) -> dummyRepository