Mocking request.remote_ip for testing.

Clem Rock
Mon, 17 Sep 2007 22:03:14 -0000

Hello,

    I''m writing test for some geo-location methods which are all very
IP
dependent.

Is there a good way to mock a request.remote_ip?

Thanks for any help,

Clem C
--
Posted via http://www.ruby-forum.com/.