spec: change options to a function viewOptions()
editorView: add tests for disabling save button