   model.save = (attrs, opts) -> opts.error()
 
   # options for EditorView contruction
-  options = model: model
+  viewOptions = -> model: model
 
 
   it 'should be part of acorn.player', ->

      expect(view.$('#editor-save-btn').attr 'disabled').toBe 'disabled'

    it 'should trigger `Editor:Saved` event on save success', ->
      view = new EditorView options

      saveSpy = spyOn model, 'save'
      saveSpy.andCallFake (attrs, opts) -> opts.success()

      expect(spy).toHaveBeenCalledWith(view.shellEditorView.shell().attributes)

    it 'should call save on acornModel', ->
      view = new EditorView viewOptions()
      spy = spyOn model, 'save'
      view.render()
      expect(spy).not.toHaveBeenCalled()
