diff options
author | José Valim <jose.valim@gmail.com> | 2010-06-17 13:48:02 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-06-17 13:48:02 +0200 |
commit | 7ba756281ac193e53cabba3ada75f1423906bb97 (patch) | |
tree | d9de3efcb646bc58f4063c57833c7a435d4eff13 | |
parent | 5cd3c2a8556c8b1391508508c0f2ddfe89214028 (diff) | |
download | rails-7ba756281ac193e53cabba3ada75f1423906bb97.tar.gz rails-7ba756281ac193e53cabba3ada75f1423906bb97.tar.bz2 rails-7ba756281ac193e53cabba3ada75f1423906bb97.zip |
Add a failing test for ticket #4874
-rw-r--r-- | railties/test/application/routing_test.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/railties/test/application/routing_test.rb b/railties/test/application/routing_test.rb index dcac1a87d9..f0268164d0 100644 --- a/railties/test/application/routing_test.rb +++ b/railties/test/application/routing_test.rb @@ -69,6 +69,20 @@ module ApplicationTests assert_equal 'bar', last_response.body end + test "mount rack app" do + app_file 'config/routes.rb', <<-RUBY + AppTemplate::Application.routes.draw do |map| + mount lambda { |env| [200, {}, [env["PATH_INFO"]]] }, :at => "/blog" + # The line below is required because mount sometimes + # fails when a resource route is added. + resource :user + end + RUBY + + get '/blog/archives' + assert_equal '/archives', last_response.body + end + test "multiple controllers" do controller :foo, <<-RUBY class FooController < ApplicationController |