         expect(annotation.text).to.equal("a")
         expect(annotation.commentUrl).to.equal("1")
         expect(annotation.page).to.equal("http://page")
-        expect(annotation.ranges).to.eql([])
+        expect(annotation.ranges).to.eql([xpath])
       promise.done.args[0][0]([{content: "a", uri: "1"}, {content: "b", uri: "2"}])
 
     it "should call reject immediately if parsing fails", ->

      expect(target).to.have.property("content", annotation.text)

  describe "#annotationFromHighlight()", ->
    highlight = null
    client    = null
    promise   = null

    beforeEach ->
      highlight =
        id: 1
        locators: {annotator: '{"ranges": [], "page": "http://page"}'}
        uri: "http://api.readmill.com/highlight/1"
        content: "A nice piece of highlighted text"
        comments: "http://api.readmill.com/highlight/1/comments"

    annotation =
      id: 1
      page: "http://page"
      ranges: [{start: "/p", end: "/p", startOffset: 0, endOffset: 1}]
      highlights: [],
      text: "This is an annotation comment"
      quote: "some highlighted text"

