Write specs for edit view and make them pass