RedirectBackError

when i am doing functional testing it gives a error,

"RedirectBackError: No HTTP_REFERER was set in the request to this
action, so redirect_to :back could not be call
successfully. If this is a test, make sure to specify
request.env["HTTP_REFERER"]."

what i have to do?
any one can give the answer