diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-10-13 10:08:18 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-10-13 10:08:18 -0300 |
commit | c0c5f30d41627f1d077b8ccf7ab32134c6702ccf (patch) | |
tree | a4544c843c42793d01a0116dad31a0934c346be2 | |
parent | 902a6186c8e7016e87e597af5ac9094ed323bfa2 (diff) | |
parent | 707e2e88589f2db25b9c5716056b4bd309543baf (diff) | |
download | rails-c0c5f30d41627f1d077b8ccf7ab32134c6702ccf.tar.gz rails-c0c5f30d41627f1d077b8ccf7ab32134c6702ccf.tar.bz2 rails-c0c5f30d41627f1d077b8ccf7ab32134c6702ccf.zip |
Merge pull request #17234 from arthurnn/add_regression_for_path_and_cascade
Add regression test for router was overwriting PATH_INFO
-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 |