diff options
author | Arthur Neves <arthurnn@gmail.com> | 2014-10-10 19:04:18 -0400 |
---|---|---|
committer | Arthur Neves <arthurnn@gmail.com> | 2014-10-10 19:05:36 -0400 |
commit | 707e2e88589f2db25b9c5716056b4bd309543baf (patch) | |
tree | 0f0643a7ded20f899d18c88033876c0abcaeb4ee /actionpack/test | |
parent | 51278579477eb7ee20fe2aba53b4b13203791b22 (diff) | |
download | rails-707e2e88589f2db25b9c5716056b4bd309543baf.tar.gz rails-707e2e88589f2db25b9c5716056b4bd309543baf.tar.bz2 rails-707e2e88589f2db25b9c5716056b4bd309543baf.zip |
Add regression test for router was overwriting PATH_INFO
[related #17233]
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/controller/integration_test.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/actionpack/test/controller/integration_test.rb b/actionpack/test/controller/integration_test.rb index c6380c7ffd..d91a1657b3 100644 --- a/actionpack/test/controller/integration_test.rb +++ b/actionpack/test/controller/integration_test.rb @@ -615,6 +615,8 @@ class ApplicationIntegrationTest < ActionDispatch::IntegrationTest get 'bar', :to => 'application_integration_test/test#index', :as => :bar mount MountedApp => '/mounted', :as => "mounted" + get 'fooz' => proc { |env| [ 200, {'X-Cascade' => 'pass'}, [ "omg" ] ] }, :anchor => false + get 'fooz', :to => 'application_integration_test/test#index' end def app @@ -631,6 +633,12 @@ class ApplicationIntegrationTest < ActionDispatch::IntegrationTest assert_equal '/mounted/baz', mounted.baz_path end + test "path after cascade pass" do + get '/fooz' + assert_equal 'index', response.body + assert_equal '/fooz', path + end + test "route helpers after controller access" do get '/' assert_equal '/', empty_string_path |