         previousActiveCell = tableView.getActiveCell()
         spyOn(tableView, 'moveRight')
         editor.setText('Foo Bar')
-        editor.trigger('table-edit:move-right')
+        atom.commands.dispatch(editor.element, 'table-edit:move-right')
 
         expect(tableView.isEditing()).toBeFalsy()
         expect(previousActiveCell.getValue()).toEqual('Foo Bar')

    it 'is triggered on core:move-left', ->
      spyOn(tableView, 'moveLeft')

      tableView.trigger('core:move-left')

      expect(tableView.moveLeft).toHaveBeenCalled()


    it 'triggers an undo on the table', ->
      spyOn(table, 'undo')

      atom.commands.dispatch(tableView.element, 'core:undo')

      expect(table.undo).toHaveBeenCalled()

