Permalink
Browse files

Merge pull request #4462 from spohlenz/fix-routing-tests

Stub ip method of alternative request class in router tests
  • Loading branch information...
1 parent 90aae07 commit f9275e54e0a9462ccbf8d19639232c5cd0fe1348 @tenderlove tenderlove committed Jan 16, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 actionpack/test/dispatch/routing_test.rb
@@ -524,6 +524,10 @@ def request_method
"GET"
end
+ def ip
+ "127.0.0.1"
+ end
+
def x_header
@env["HTTP_X_HEADER"] || ""
end

0 comments on commit f9275e5

Please sign in to comment.