{"issue":{"state":"open","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"user":{"avatar_url":"https://secure.gravatar.com/avatar/a9d4d2558b560b0ef168ced0f6c5198c?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"a9d4d2558b560b0ef168ced0f6c5198c","url":"https://api.github.com/users/jzaefferer","login":"jzaefferer","id":52585},"milestone":null,"assignee":{"avatar_url":"https://secure.gravatar.com/avatar/fdc587e5edec6ba881d9cb93cbe72c7b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"fdc587e5edec6ba881d9cb93cbe72c7b","url":"https://api.github.com/users/wookiehangover","login":"wookiehangover","id":84644},"updated_at":"2011-11-07T02:01:33Z","labels":[],"comments":8,"closed_at":null,"url":"https://api.github.com/repos/documentcloud/backbone/issues/678","body":"Currently unit testing a router requires knowledge of router and history internals. I currently use this helper to trigger a router:\r\n\r\n    function hit(fragment) {\r\n      _.any(Backbone.history.handlers, function(handler) {\r\n        if (handler.route.test(fragment)) {\r\n          handler.callback(fragment);\r\n          return true;\r\n        }\r\n      });\r\n    }\r\n\r\nDuplicating that in each testsuite and having to rely on so many Backbone internals to test a router is not maintainable.","html_url":"https://github.com/documentcloud/backbone/issues/678","number":678,"title":"Make unit testing routers easier","id":1927124,"created_at":"2011-10-17T10:44:37Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/21dbcdbf46f8ee3774c1b9b3efadfa9e?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"21dbcdbf46f8ee3774c1b9b3efadfa9e","url":"https://api.github.com/users/tbranyen","login":"tbranyen","id":181635},"updated_at":"2011-11-07T02:01:33Z","url":"https://api.github.com/repos/documentcloud/backbone/issues/comments/2649285","body":"@dnagir If you're using jQuery, I'd suggest looking into my vertebrae plugin for testing.  https://github.com/tbranyen/vertebrae\r\n\r\nThis is pretty much exactly why this was written.","id":2649285,"created_at":"2011-11-07T02:01:33Z"}}