From 9e55a00a56a2792b1015494f7075590baf5c2ee2 Mon Sep 17 00:00:00 2001 From: Corey Johnson Date: Wed, 14 Dec 2011 18:30:17 -0800 Subject: [PATCH] Closes all non-spec windows opened by the app. --- spec/atom/app-spec.coffee | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/spec/atom/app-spec.coffee b/spec/atom/app-spec.coffee index 83870a453..177eb3c4b 100644 --- a/spec/atom/app-spec.coffee +++ b/spec/atom/app-spec.coffee @@ -7,9 +7,7 @@ describe "App", -> app = new App() afterEach -> - window.x = app.windows()[0] - setTimeout (-> window.x.close()), 1 - #w.close() for w in app.windows() + window.close() for window in app.windows() describe "open", -> it "loads a buffer based on the given path and displays it in a new window", ->