These tests can be massively DRY'd up by using url helpers to build the expected urls instead of string interpolation, but I won't blame you if you leave that task to the next dev!