     sel2.should.have.deep.property 'endPos.word', 2
     sel2.should.have.deep.property 'endPos.pos', 1
 
-  it 'unbind correctly', ->
+  it 'unbind correctly [unbind]', ->
     rte = new Rte "Zero One two three four five"
     sel = new Selection 0, 1, rte
     sel2 = new Selection 0, 5, rte

  rte1 = rte2 = null
  ar = ["This", "is", "a ", "test"]

  it 'initialize correctly', ->
    rte1 = new Rte "Test"
    rte1.val().should.equal "Test"

  it 'split the words correctly', ->
    rte1 = new Rte "This is a  test"
    rte1.val().should.equal "This is a  test"
    rte1 = new Rte "   "
    rte1.val().should.equal "   "

  it 'insert words correctly', ->
    rte1 = new Rte "is"
    rte1.insertWords(0, ["This "])
    rte1.val().should.equal "This is"
    rte1.insertWords(2, [" sparta ", "!"])
    rte1.val().should.equal "This is sparta !"

  it 'delete words correctly', ->
    rte1 = new Rte "This There is a mistake in this sentence!"
    rte1.deleteWords(0, 1)
    rte1.val().should.equal "There is a mistake in this sentence!"

    rte1.delta delta
    rte1.val().should.equal "Gandalf Grey"

  it 'should accept deltas (style) [delta]', ->
    delta = {ops:[
      { retain: 7, attributes: {bold: true } }]}
    rte1 = new Rte "Gandalf the Grey"
    rte1.delta delta

describe 'Selection object should', ->
  sel = sel2 = word = null
  rte = new Rte "Zero One two three four five"

  it 'initialized with three parameters [constructor]', ->
    sel = new Selection 1, 7, rte

  it 'convert positions correctly [_relativeFromAbsolute]', ->
    sel = new Selection 1, 7, rte
    sel.should.have.property('startPos')
    sel.should.have.deep.property('startPos.word', 0)
