From d0c767ac15b4e43cfebfddb12788ebcc9b24c614 Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Wed, 29 Aug 2012 20:54:39 -0500 Subject: [PATCH] Fix spy --- spec/app/window-spec.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/app/window-spec.coffee b/spec/app/window-spec.coffee index 5ccd0edf8..451cc8853 100644 --- a/spec/app/window-spec.coffee +++ b/spec/app/window-spec.coffee @@ -24,11 +24,11 @@ describe "Window", -> it "shows alert when a modifed buffer exists", -> rootView.getActiveEditor().insertText("hi") - spyOn($native, "alert") + spyOn(atom, "confirm") spyOn($native, "reload") window.reload() expect($native.reload).not.toHaveBeenCalled() - expect($native.alert).toHaveBeenCalled() + expect(atom.confirm).toHaveBeenCalled() describe "requireStylesheet(path)", -> it "synchronously loads the stylesheet at the given path and installs a style tag for it in the head", ->