           pane.saveActiveItem()
 
     describe "when the current item has no uri", ->
-      beforeEach ->
-        activeItemUri = null
-
       describe "when the current item has a saveAs method", ->
         it "opens a save dialog and saves the current item as the selected path", ->
           pane.activeItem.saveAs = jasmine.createSpy("saveAs")

describe "Pane", ->
  class Item extends Model
    constructor: (@name) ->

  describe "construction", ->
    it "sets the active item to the first item", ->

      expect(pane.items).toEqual [item2]

  describe "::saveActiveItem()", ->
    pane = null

    beforeEach ->
      pane = new Pane(items: [new Item("A")])
      spyOn(atom, 'showSaveDialogSync').andReturn('/selected/path')

    describe "when the active item has a uri", ->
      beforeEach ->
        pane.activeItem.uri = "test"

      describe "when the active item has a save method", ->
        it "saves the current item", ->
