From 9d733a2da905f4761e82dfc8d09982d2485dce3e Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Mon, 15 Jul 2013 13:56:18 -0700 Subject: [PATCH] Don't grab native window focus Call $(window) instead of atom.focus() so the native window doesn't regain focus on each spec run preventing it from running in the background. --- spec/spec-helper.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/spec-helper.coffee b/spec/spec-helper.coffee index 171e80509..0a1d1a904 100644 --- a/spec/spec-helper.coffee +++ b/spec/spec-helper.coffee @@ -78,7 +78,7 @@ beforeEach -> spyOn(clipboard, 'readText').andCallFake -> pasteboardContent addCustomMatchers(this) - atom.focus() # Hack to get async events to fire + $(window).focus() # Hack to get async events to fire afterEach -> keymap.bindingSets = bindingSetsToRestore