diff options
author | José Valim <jose.valim@gmail.com> | 2010-04-12 16:49:41 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-04-12 16:49:41 +0200 |
commit | a8b1ca26d77823e7f51b9be1b64ff1aa5cc125b2 (patch) | |
tree | 84065d0b8ba89231ffb35298ba6bd39d81295cc7 /actionpack/test | |
parent | ccf33660a1548dadd123a92df6de2de946d208c4 (diff) | |
download | rails-a8b1ca26d77823e7f51b9be1b64ff1aa5cc125b2.tar.gz rails-a8b1ca26d77823e7f51b9be1b64ff1aa5cc125b2.tar.bz2 rails-a8b1ca26d77823e7f51b9be1b64ff1aa5cc125b2.zip |
Ensure match path, :controller => name works as expected.
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/dispatch/routing_test.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/actionpack/test/dispatch/routing_test.rb b/actionpack/test/dispatch/routing_test.rb index 411a28d8ee..d32d708b35 100644 --- a/actionpack/test/dispatch/routing_test.rb +++ b/actionpack/test/dispatch/routing_test.rb @@ -52,6 +52,8 @@ class TestRoutingMapper < ActionDispatch::IntegrationTest match 'global/:action' end + match "/local/:action", :controller => "local" + constraints(:ip => /192\.168\.1\.\d\d\d/) do get 'admin' => "queenbee#index" end @@ -415,6 +417,13 @@ class TestRoutingMapper < ActionDispatch::IntegrationTest end end + def test_local + with_test_routes do + get '/local/dashboard' + assert_equal 'local#dashboard', @response.body + end + end + def test_projects with_test_routes do get '/projects' |