I have a before_filter that relies on request.referer to set an instance variable (@cancel_link) for use in the views. When trying to test that the instance variable was assigned in my functional tests, I realized that TestRequest doesn’t have the #referer method like CgiRequest does.
fizx on #rubyonrails got me heading in the right direction with […]