Undefined method referer on ActionController::TestRequest

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?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs