   describe 'constructor', ->
 
 
-    it 'should be instantiated', ->
-
-      expect(ideView).toBeA IDEView
+    it 'should be instantiated', -> expect(ideView).toBeA IDEView
 
 
     it 'should have default options set and invoke required methods', ->

      expect(ideView.openFiles).toEqual []
      expect(ideView.setHash).toHaveBeenCalled()
      expect(ideView.bindListeners).toHaveBeenCalled()

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) ->

  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
  editorPane = new clazz { file, content }

  expect.spyOn(ideView.tabView, 'addPane').andCallThrough()

  pane = ideView.createPane_ editorPane, options, file

  return { ideView, editorPane, pane, file }


describe 'IDEView', ->
