Testing request.request_uri

I’ve got several methods that has the following line:

redirect_to request.request_uri

How do I test whether the method correctly redirected to the previous
uri?

Sorry, to clarify, I want to test this in the functional (controller)
tests.