 
     rte1 = new Rte "There is a mistake in this sentence! there"
     rte1.deleteWords(7, 8)
-    rte1.val().should.equal "There is a mistake in this sentence!"
+    rte1.val().should.equal "There is a mistake in this sentence! "
 
-  it 'insert characters correctly at relative position', ->
+  it 'insert characters correctly at relative positions', ->
     rte1 = new Rte "I lot the gam"
     rte1.insert({startPos: {word:1, pos:2}}, 's')
     rte1.val().should.equal "I lost the gam"

  #   sel = new Selection({word:1, pos:0}, {word:0, pos:0})
  #   expect(rte1.deleteSel(sel)).to.throw Error("Invalid selection")

describe 'Selection object should', ->
  sel = rte = null
  it 'be initialized with two parameters', ->


  it 'be initialized with three parameters', ->
    rte = new Rte "Zero One two three four five"
    sel = new Selection 1, 7, rte

    sel.should.have.property('startPos')
    sel.should.have.deep.property('startPos.word', 0)
    sel.should.have.deep.property('startPos.pos', 1)

    sel.should.have.property('endPos')
    sel.should.have.deep.property('endPos.word', 1)
    sel.should.have.deep.property('endPos.pos', 2)

  it 'be initialized with four parameters', ->
    sel = new Selection 0, 1, 2, 3
