     describe 'on ShellOptions:SwapShell', ->
 
       it 'should call swap the top level shell', ->
-        view = new ShellEditorView options
+        view = new ShellEditorView viewOptions()
         view.render()
         spyOn view, 'swapTopLevelShell'
         view.shellOptionsView.trigger 'ShellOptions:SwapShell', GalleryShell.id

      expect(view.shellOptionsView.$el.hasClass 'hidden').toBe true

    it 'should hide the ShellOptionsView with < 2 non-empty shells', ->
      view = new ShellEditorView options
      view.render()
      expect(view.remixerViews.length).toBe 2
      expect(view.shellOptionsView.$el.hasClass 'hidden').toBe true

  CollectionShell = acorn.shells.CollectionShell
  ShellEditorView = acorn.player.ShellEditorView

  model = new TextShell.Model
  eventhub = new Backbone.View

  # options for EditorView contruction
  viewOptions = (opts = {}) ->
    _.defaults opts,
      model: model
      eventhub: eventhub


  it 'should be part of acorn.player', ->
    expect(ShellEditorView).toBeDefined()

  describeView ShellEditorView, athena.lib.View, viewOptions()


  describe 'construction', ->

    it 'should wrap single-shells in a CollectionShell.Model', ->
      view = new ShellEditorView viewOptions()
      expect(view.model instanceof CollectionShell.Model).toBe true
      expect(view.model.shells().models[0]).toBe model

    it 'should add an EmptyShell to the collectionShell', ->
      view = new ShellEditorView viewOptions()
      coll = view.model.shells()
      expect(coll.models[1] instanceof EmptyShell.Model).toBe true

