       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'

kd                    = require 'kd'
expect                = require 'expect'
FSFile                = require 'app/util/fs/fsfile'
FSHelper              = require 'app/util/fs/fshelper'
IDEView               = require 'ide/views/tabview/ideview'
IDEEditorPane         = require 'ide/workspace/panes/ideeditorpane'
IDETailerPane         = require 'ide/workspace/panes/idetailerpane'
IDEApplicationTabView = require 'ide/views/tabview/ideapplicationtabview'

ideView = null


createEditorPane = (paneClass) ->

describe 'IDEView', ->


  beforeEach ->

    initSpies()
    ideView = new IDEView


  afterEach -> expect.restoreSpies()
