         expect(table.getRow(0).height).toEqual(100)
 
       it 'rolls back a batched rows addition', ->
+        table.clearUndoStack()
+
         rows = table.addRows [
           ['foo', 'bar']
           ['bar', 'baz']

        rows[0].height = 50
        rows[1].height = 100

        table.removeRowsInRange([0,2])

        table.undo()

        expect(table.getRowsCount()).toEqual(2)
        expect(table.undoStack.length).toEqual(5)
        expect(table.redoStack.length).toEqual(1)
        expect(table.getRow(0).key).toEqual('foo')
        expect(table.getRow(0).value).toEqual('bar')

        column = table.addColumn('value', default: 'empty')

      it 'rolls back a row addition', ->
        table.clearUndoStack()

        row = table.addRow ['foo', 'bar'], height: 100

        table.undo()

        expect(table.getRowsCount()).toEqual(0)
        expect(table.undoStack.length).toEqual(0)
        expect(table.redoStack.length).toEqual(1)

        table.redo()

        expect(table.undoStack.length).toEqual(1)
        expect(table.redoStack.length).toEqual(0)
        expect(table.getRowsCount()).toEqual(1)
        expect(table.getRow(0).key).toEqual('foo')
