How about adding @url = 'http://hostname:80/path/to/somewhere' and use it here and in the following spec for a little dryness.