 
   describe 'contextMenu', ->
     it 'should create context menu', ->
-      @view.createContextMenu = @sinon.stub()
+      @view.createContextMenu = sinon.spy (->)
       @view.contextMenu();
       @view.createContextMenu.should.be.calledOnce

        'Add Into' : { callback: => (->) }
        'Edit' : { callback: => (->) }
        'Delete' : { callback: => (->) }

  afterEach ->
    @sinon.restore()

  describe 'constructor', ->
    it 'should instantiate without any errors', ->


describe 'KDButtonViewWithMenu', ->
  beforeEach ->
    @view = new KDButtonViewWithMenu
      title : 'Settings'
      iconClass : 'settings'
