Merge pull request #4462 from spohlenz/fix-routing-tests
Stub ip method of alternative request class in router tests
This commit is contained in:
commit
f84478f46e
@ -524,6 +524,10 @@ def request_method
|
||||
"GET"
|
||||
end
|
||||
|
||||
def ip
|
||||
"127.0.0.1"
|
||||
end
|
||||
|
||||
def x_header
|
||||
@env["HTTP_X_HEADER"] || ""
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user