diff --git a/spec/app/window-spec.coffee b/spec/app/window-spec.coffee index ae3093892..f2449c51c 100644 --- a/spec/app/window-spec.coffee +++ b/spec/app/window-spec.coffee @@ -8,7 +8,7 @@ describe "Window", -> [projectPath, windowEventHandler] = [] beforeEach -> - spyOn(atom, 'getPathToOpen').andReturn(project.getPath()) + atom.getLoadSettings().initialPath = project.getPath() windowEventHandler = new WindowEventHandler() window.deserializeEditorWindow() projectPath = project.getPath()