   describe "when the prototypes deactivate method is called", ->
     it "calls the deactivate on tree view instance", ->
       spyOn(treeView, "deactivate").andCallThrough()
-      rootView.deactivateExtension(TreeView)
+      rootView.deactivatePackage(TreeView)
       expect(treeView.deactivate).toHaveBeenCalled()
 
   describe "serialization", ->

        rootView.deactivate()

        rootView = new RootView
        rootView.activateExtension(TreeView)
        treeView = rootView.find(".tree-view").view()

      it "does not create a root node", ->


      rootView = new RootView(rootDirPath)
      project = rootView.project
      rootView.activatePackage(TreeView)
      treeView = rootView.find(".tree-view").view()
      dirView = treeView.root.entries.find('.directory:contains(test-dir)').view()
      dirView.expand()
