diff --git a/spec/config-spec.coffee b/spec/config-spec.coffee index e1cd754d9..cb4b19113 100644 --- a/spec/config-spec.coffee +++ b/spec/config-spec.coffee @@ -878,7 +878,7 @@ describe "Config", -> beforeEach -> atom.notifications.onDidAddNotification addErrorHandler = jasmine.createSpy() - spyOn(fs, "existsSync").andCallFake -> + spyOn(fs, "makeTreeSync").andCallFake -> error = new Error() error.code = 'EPERM' throw error