aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/journey
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/test/journey')
-rw-r--r--actionpack/test/journey/router_test.rb9
1 files changed, 4 insertions, 5 deletions
diff --git a/actionpack/test/journey/router_test.rb b/actionpack/test/journey/router_test.rb
index 5c6d9645fb..427d63d75d 100644
--- a/actionpack/test/journey/router_test.rb
+++ b/actionpack/test/journey/router_test.rb
@@ -13,7 +13,10 @@ module ActionDispatch
@formatter = Formatter.new(@routes)
end
- class FakeRequestFeeler < Struct.new(:env, :called)
+ class FakeRequestFeeler < ActionDispatch::Request
+ attr_writer :env
+ attr_accessor :called
+
def new env
self.env = env
self
@@ -23,10 +26,6 @@ module ActionDispatch
self.called = true
'world'
end
-
- def path_info; env['PATH_INFO']; end
- def request_method; env['REQUEST_METHOD']; end
- def ip; env['REMOTE_ADDR']; end
end
def test_dashes