Make spec pass by using code that is not horribly written

This commit is contained in:
Corey Johnson 2012-07-17 20:18:00 -07:00
parent a5032e3811
commit 86b0fee4f1
2 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@ class Operation
preview: ->
range = @anchorRange.getBufferRange()
@buffer.textInRange(range)
@buffer.getTextInRange(range)
destroy: ->
@buffer.release()

View File

@ -5,5 +5,5 @@ class PreviewItem extends View
@content: (operation) ->
@li =>
@span operation.getPath(), outlet: "path", class: "path"
@span outlet: "preview", class: "preview", ->
operation.preview()
@span operation.preview(), outlet: "preview", class: "preview"