From 471ac4976fcee3d6310ea5902da1a76c81e0b02e Mon Sep 17 00:00:00 2001 From: probablycorey Date: Tue, 30 Apr 2013 11:48:09 -0700 Subject: [PATCH] Test correct editor in font size spec --- spec/app/editor-spec.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/app/editor-spec.coffee b/spec/app/editor-spec.coffee index dec1c2a3f..b1666b857 100644 --- a/spec/app/editor-spec.coffee +++ b/spec/app/editor-spec.coffee @@ -320,8 +320,9 @@ describe "Editor", -> expect(editor.verticalScrollbarContent.height()).toBe buffer.getLineCount() * editor.lineHeight newEditor = new Editor(editor.activeEditSession.copy()) + editor.remove() newEditor.attachToDom() - expect(editor.css('font-size')).toBe '30px' + expect(newEditor.css('font-size')).toBe '30px' it "updates the position and size of selection regions", -> config.set("editor.fontSize", 10)