I am getting a NoMethodError: undefined method `referer' for #<ActionController::TestRequest:0x438f2e4> when running a test on a controller including a request.referer call.
When tested via script/server it works perfectly.
I also checked the TestRequest API which does in fact include the referer() method. Am I doing something wrong?