Sending referer header

6 views
Skip to first unread message

Karl Baum

unread,
Oct 7, 2009, 12:00:14 PM10/7/09
to web...@googlegroups.com
I would like to test that I am properly capturing the request.referer, but it is nil within my webrat tests.  Is there a way to set the referer when using the visit method?

Thx.

Andrew Premdas

unread,
Oct 11, 2009, 2:34:54 PM10/11/09
to web...@googlegroups.com
2009/10/7 Karl Baum <karl...@gmail.com>

I would like to test that I am properly capturing the request.referer, but it is nil within my webrat tests.  Is there a way to set the referer when using the visit method?

Thx.


Visit the page you want to be the request.referer first !
    
      visit referer
      visit page

Andrew

Karl Baum

unread,
Oct 11, 2009, 8:37:08 PM10/11/09
to web...@googlegroups.com
Good point.. Seems obvious in hindsight.. Oh well :-).

Thx!
Reply all
Reply to author
Forward
0 new messages