adds unit tests for Discourse.View
Merge pull request #1530 from velesin/view_tests

adds unit tests for Discourse.View