I think these specs may not be exactly what you want.  In Jasmine, the function passed to `waitsFor` will be repeatedly executed until it returns true, which means that it may call processUrl multiple times.  You're better off interleaving `runs` blocks that modify state with `waitsFor` blocks that only query state and are idempotent.