aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/dispatch/routing_test.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2014-05-23 09:56:33 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2014-05-23 09:56:33 -0700
commita6e94547e84ae692a084a95f2c3ba02d513edf3e (patch)
tree2507f9a52310a089481169d3a31797ee9ea7bbfe /actionpack/test/dispatch/routing_test.rb
parent2fdddcee6fbc9f588285d8e5670303ffb533f170 (diff)
downloadrails-a6e94547e84ae692a084a95f2c3ba02d513edf3e.tar.gz
rails-a6e94547e84ae692a084a95f2c3ba02d513edf3e.tar.bz2
rails-a6e94547e84ae692a084a95f2c3ba02d513edf3e.zip
use the request object since we have it
stop hardcoding hash keys and use the accessors provided on the request object.
Diffstat (limited to 'actionpack/test/dispatch/routing_test.rb')
-rw-r--r--actionpack/test/dispatch/routing_test.rb8
1 files changed, 3 insertions, 5 deletions
diff --git a/actionpack/test/dispatch/routing_test.rb b/actionpack/test/dispatch/routing_test.rb
index 051431ce26..ccc3839212 100644
--- a/actionpack/test/dispatch/routing_test.rb
+++ b/actionpack/test/dispatch/routing_test.rb
@@ -3368,15 +3368,13 @@ end
class TestAltApp < ActionDispatch::IntegrationTest
class AltRequest
- attr_accessor :path_parameters
+ attr_accessor :path_parameters, :path_info, :script_name
def initialize(env)
@path_parameters = {}
@env = env
- end
-
- def path_info
- "/"
+ @path_info = "/"
+ @script_name = ""
end
def request_method