diff options
author | José Valim <jose.valim@gmail.com> | 2010-06-22 23:23:18 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-06-22 23:30:19 +0200 |
commit | fef5cf92ed883daf663299258549bc7aa454db1e (patch) | |
tree | 81e5cea7dc5641920d10c8880b7c1a2cbaaaeeea /actionpack/test/dispatch/routing_test.rb | |
parent | 62c4e4d3856b38ee9869f4ad6342e712788c8635 (diff) | |
download | rails-fef5cf92ed883daf663299258549bc7aa454db1e.tar.gz rails-fef5cf92ed883daf663299258549bc7aa454db1e.tar.bz2 rails-fef5cf92ed883daf663299258549bc7aa454db1e.zip |
Deprecate :name_prefix in the new router DSL.
Diffstat (limited to 'actionpack/test/dispatch/routing_test.rb')
-rw-r--r-- | actionpack/test/dispatch/routing_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/test/dispatch/routing_test.rb b/actionpack/test/dispatch/routing_test.rb index 495255c22b..e250810168 100644 --- a/actionpack/test/dispatch/routing_test.rb +++ b/actionpack/test/dispatch/routing_test.rb @@ -70,7 +70,7 @@ class TestRoutingMapper < ActionDispatch::IntegrationTest get 'admin/passwords' => "queenbee#passwords", :constraints => ::TestRoutingMapper::IpRestrictor - scope 'pt', :name_prefix => 'pt' do + scope 'pt', :as => 'pt' do resources :projects, :path_names => { :edit => 'editar', :new => 'novo' }, :path => 'projetos' do post :preview, :on => :new end @@ -243,9 +243,9 @@ class TestRoutingMapper < ActionDispatch::IntegrationTest end controller :articles do - scope '/articles', :name_prefix => 'article' do + scope '/articles', :as => 'article' do scope :path => '/:title', :title => /[a-z]+/, :as => :with_title do - match '/:id', :to => :with_id + match '/:id', :to => :with_id, :as => "" end end end |