rails/rails — pull request #8489 by dugsmith (2012-12-11 16:31:18+00:00)
Title: Fix relative_url_root in integration tests (#8480)

Previously, url helpers in integration tests ignored RAILS_RELATIVE_URL_ROOT, so
even though the app worked, test code would not use the relative_url_root
in url helpers.

_Before:_
when running a test like this:
`$ RAILS_RELATIVE_URL_ROOT='/context' rake test`

tests with code like this:
`assert_equal "http://relfoo.com/context/foo", rel_foos_url`

would fail like this:
`<"http://relbar.com/context/foo"> expected but was <"http://relbar.com/foo">.`

_After:_
Tests pass, yay! :-)