Vizzuality/gfw — pull request #589 by eightysteele (2014-06-27 15:46:03+00:00)
Title: Fix failing tests and add test for formatUrl

Yo dudes, hh, a bunch of tests were failing, fixed here! :D

So before sending a PR, super easy, we just have to:

```bash
$ cd jstests
$ testem
```

That'll run all tests in jstests/spec via terminal and browser and let you know if anything is broken BOOM haha. @pdgago is there another way to run these tests with your new grunt stuff?

What do you guys think? Also maybe if we send PRs instead of direct commits then we'll all get notified when new code is inbound... It just makes it easier to review and spot stuff before/after it gets merged in. Just thoughts!

Other stuff in this PR:
* fixed injection of layersNav.html in layersNavView
* added tests for PlaceService._formatUrl, added route name param
* added utils_spec with test for _.toNumber