Refactor document views specs

https://www.pivotaltracker.com/story/show/73291456
Summary of changes: https://docs.google.com/document/d/13TNmNkD6__d-7TbnvkNUV8yvCY8bc_SGa6ewxewrciE/edit?usp=sharing
it is deprecated in rspec 3 , because stub is a monkey patch of Object