       expect(subViews.length).toBe 2
       expect(subViews.last).toBeA kd.CustomHTMLView
       expect(subViews.last.options.cssClass).toBe 'tail-icon'
+
+
+  describe '::createTerminal', ->
+
+    it 'should create a terminal pane and append it', ->
+
+      app = new AppController
+      app.workspaceData = { rootPath: '/root/path' }
+
+      mock.appManager.getFrontApp.toReturnPassedParam app
+
+      pane = ideView.createTerminal { machine: mock.getMockMachine() }
+
+      expect(pane).toBeA kd.TabPaneView
+      expect(pane.view).toBeA IDETerminalPane
+      expect(pane.options.name).toBe 'Terminal'
+      expect(pane.view.options.path).toBe '/root/path'

  file    = FSHelper.createFileInstance path: '/foo/bar'
  content = 'Foo bar baz waz here'
  options = { name: 'Foo Bar' }

  expect.spyOn IDEView.prototype, 'updateStatusBar'
  expect.spyOn IDEView.prototype, 'bindListeners'
  spy = expect.spyOn IDEView.prototype, 'trimUntitledFileName'
  expect.spyOn IDEView.prototype, 'handlePaneRemoved'

  clazz      = paneClass or IDEEditorPane
  ideView    = new IDEView

      expect(ideView.handlePaneRemoved).toHaveBeenCalled()


    it 'should create tail icon if the view is an instance of an IDETailerPane', ->

      { ideView, editorPane, pane } = createEditorPane IDETailerPane
