laravel/framework — pull request #4039 by kyleferguson (2014-04-04 14:27:26+00:00)
Title: assert redirect to relative uri

If you generate the url in the assertion it prevents asserting to relative urls, since it will get the HTTP_SERVER information to create a full url (localhost set in symfony's component I believe). So if you have Redirect::to('/location') in a controller and then assertRedirectTo('/location') it will fail because the assertion will actually create http://localhost/location. I think it would be better to pass the plain given uri because theres an app instance available in the test so you could create this behavior if you really wanted to. This is just first glance so maybe theres a specific reason for this I'm missing. All tests still pass.