From f9275e54e0a9462ccbf8d19639232c5cd0fe1348 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Mon, 16 Jan 2012 09:16:03 -0800 Subject: Merge pull request #4462 from spohlenz/fix-routing-tests Stub ip method of alternative request class in router tests --- 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 67556e5253..4517e9f2b3 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