Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

Stub ip method of alternative request class in router tests
  • Loading branch information...
commit f84478f46e4791bcc19a826e1e813fd1bfb65498 2 parents 56d980b + 3141da0
@tenderlove tenderlove authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 actionpack/test/dispatch/routing_test.rb
View
4 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
Please sign in to comment.
Something went wrong with that request. Please try again.