Use EditSession.getSoftTabs instead of .softTabs attr in snippets spec

This commit is contained in:
Nathan Sobo
2013-07-21 17:51:42 -06:00
parent 561e666091
commit 383ba80d1e

View File

@@ -168,7 +168,7 @@ describe "Snippets extension", ->
describe "when the snippet contains hard tabs", ->
describe "when the edit session is in soft-tabs mode", ->
it "translates hard tabs in the snippet to the appropriate number of spaces", ->
expect(editSession.softTabs).toBeTruthy()
expect(editSession.getSoftTabs()).toBeTruthy()
editor.insertText("t3")
editor.trigger keydownEvent('tab', target: editor[0])
expect(buffer.lineForRow(1)).toBe " line 2"
@@ -192,7 +192,7 @@ describe "Snippets extension", ->
describe "when the snippet spans multiple lines", ->
it "indents the subsequent lines of the snippet to be even with the start of the first line", ->
expect(editSession.softTabs).toBeTruthy()
expect(editSession.getSoftTabs()).toBeTruthy()
editor.setCursorScreenPosition([2, Infinity])
editor.insertText ' t3'
editor.trigger 'snippets:expand'