View spec setup


#1

What are some good ways to set up the view environment for isolation in view specs?


#2

This can be helpful https://github.com/atom/image-view/blob/master/spec/image-editor-view-spec.coffee#L59