On JavaScript tests, Rails URL methods don't include the port when invoked from a test, but they do when invoked from the browser. This was causing some tests to fail with Selenium.