From 3141da0e3eb4198ae8bcf7fccf403583bd695bf1 Mon Sep 17 00:00:00 2001 From: Sam Pohlenz Date: Sat, 14 Jan 2012 13:50:57 +1030 Subject: Stub ip method of alternative request class --- actionpack/test/dispatch/routing_test.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'actionpack') diff --git a/actionpack/test/dispatch/routing_test.rb b/actionpack/test/dispatch/routing_test.rb index e5ed11d1ea..c6e6ed4d6b 100644 --- a/actionpack/test/dispatch/routing_test.rb +++ b/actionpack/test/dispatch/routing_test.rb @@ -524,6 +524,10 @@ class TestRoutingMapper < ActionDispatch::IntegrationTest "GET" end + def ip + "127.0.0.1" + end + def x_header @env["HTTP_X_HEADER"] || "" end -- cgit v1.2.3