From 3c37c0ebebb94c2e401480ecf83edbab54326a08 Mon Sep 17 00:00:00 2001 From: Corey Johnson Date: Wed, 1 Feb 2012 18:12:49 -0800 Subject: [PATCH] Test the correct line --- spec/atom/editor-spec.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/atom/editor-spec.coffee b/spec/atom/editor-spec.coffee index 246d2bbb4..16ef3e0fd 100644 --- a/spec/atom/editor-spec.coffee +++ b/spec/atom/editor-spec.coffee @@ -524,7 +524,8 @@ describe "Editor", -> editor.getSelection().setRange new Range([1,6], [1,10]) editor.trigger "paste" - expect(editor.buffer.getLine(0)).toBe "var firstquicksort = function () {" + expect(editor.buffer.getLine(1)).toBe " var first = function(items) {" + expect(editor.buffer.getLine(1)).toBe " var sort = function(items) {" describe "when a copy event is triggered", -> it "copies selected text onto the clipboard", ->