documentcloud/backbone — pull request #1093 by afeld (2012-03-12 08:36:19+00:00)
Title: clean up tests to use fresh object instances for each run and not set globals

The tests were written to expect a certain ordering, where one test would rely on certain modifications that the previous test made to the model/view/router instance. Strict ordering in tests is bad practice because it's not clear what state the object is in, so this pull request recreates the object being tested for each run. While I was at it, I also fixed the tests that were creating global variables.

There was one `noglobals` problem I wasn't able to figure out... would love some insight about where/why that is being set.

![global error](http://cl.ly/3i0P2d1e0q0I162r0g1c/Screen%20Shot%202012-03-12%20at%204.02.01%20AM.png)