From 63e491affa1d89e1ea81a8d7ddb47ac796a11b06 Mon Sep 17 00:00:00 2001 From: Luke Pommersheim Date: Fri, 12 Jun 2015 08:37:40 +0200 Subject: [PATCH] spec now checks if the cursors are the same, not their markers --- spec/text-editor-spec.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/text-editor-spec.coffee b/spec/text-editor-spec.coffee index 9cf5d783b..f8e0aa56b 100644 --- a/spec/text-editor-spec.coffee +++ b/spec/text-editor-spec.coffee @@ -941,7 +941,7 @@ describe "TextEditor", -> it "returns the existing cursor", -> cursor1 = editor.addCursorAtScreenPosition([0, 2]) cursor2 = editor.addCursorAtScreenPosition([0, 2]) - expect(cursor2.marker).toBe cursor1.marker + expect(cursor2).toBe cursor1 describe "addCursorAtBufferPosition(bufferPosition)", -> describe "when a cursor already exists at the position", ->