diff --git a/spec/text-editor-spec.coffee b/spec/text-editor-spec.coffee index f96b7b9f3..a4c5ff4f5 100644 --- a/spec/text-editor-spec.coffee +++ b/spec/text-editor-spec.coffee @@ -5748,7 +5748,7 @@ describe "TextEditor", -> expect(editor.getGrammar().name).toBe 'CoffeeScript' - describe "the softWrapAtPreferredLineLength config setting", -> + describe "::setSoftWrapAtPreferredLineLength", -> it "soft wraps the editor at the preferred line length unless the editor is narrower", -> editor.setEditorWidthInChars(30) editor.setSoftWrapped(true) @@ -5760,15 +5760,15 @@ describe "TextEditor", -> editor.setEditorWidthInChars(10) expect(editor.lineTextForScreenRow(0)).toBe 'var ' - describe "the softWrapHangingIndent setting", -> + describe "::setSoftWrapIndentLength", -> it "controls how much extra indentation is applied to soft-wrapped lines", -> editor.setText('123456789') editor.setEditorWidthInChars(8) - atom.config.set('editor.softWrap', true) - atom.config.set('editor.softWrapHangingIndent', 2) + editor.setSoftWrapped(true) + editor.setSoftWrapIndentLength(2) expect(editor.lineTextForScreenRow(1)).toEqual ' 9' - atom.config.set('editor.softWrapHangingIndent', 4) + editor.setSoftWrapIndentLength(4) expect(editor.lineTextForScreenRow(1)).toEqual ' 9' describe "::getElement", ->