diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-10-20 16:03:55 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-10-20 16:03:55 -0500 |
commit | a5c82a9dfb6d63bf90a3378da0b71d6ea592d7e3 (patch) | |
tree | 8dd54db8e9028021cfbff8b6aaed298b48b4d94a /actionpack/test/controller/url_rewriter_test.rb | |
parent | 207d0483e57b8d017ddd0c225d30a3e4fc9edc0c (diff) | |
download | rails-a5c82a9dfb6d63bf90a3378da0b71d6ea592d7e3.tar.gz rails-a5c82a9dfb6d63bf90a3378da0b71d6ea592d7e3.tar.bz2 rails-a5c82a9dfb6d63bf90a3378da0b71d6ea592d7e3.zip |
Start rewriting some internal tests to use the new routing dsl
Diffstat (limited to 'actionpack/test/controller/url_rewriter_test.rb')
-rw-r--r-- | actionpack/test/controller/url_rewriter_test.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/actionpack/test/controller/url_rewriter_test.rb b/actionpack/test/controller/url_rewriter_test.rb index d81ced96a8..3b14cbb2d8 100644 --- a/actionpack/test/controller/url_rewriter_test.rb +++ b/actionpack/test/controller/url_rewriter_test.rb @@ -224,9 +224,8 @@ class UrlWriterTests < ActionController::TestCase def test_named_routes with_routing do |set| set.draw do |map| - map.no_args '/this/is/verbose', :controller => 'home', :action => 'index' - map.home '/home/sweet/home/:user', :controller => 'home', :action => 'index' - map.connect ':controller/:action/:id' + match 'this/is/verbose', :to => 'home#index', :as => :no_args + match 'home/sweet/home/:user', :to => 'home#index', :as => :home end # We need to create a new class in order to install the new named route. @@ -264,7 +263,7 @@ class UrlWriterTests < ActionController::TestCase def test_only_path with_routing do |set| set.draw do |map| - map.home '/home/sweet/home/:user', :controller => 'home', :action => 'index' + match 'home/sweet/home/:user', :to => 'home#index', :as => :home map.connect ':controller/:action/:id' end @@ -334,7 +333,6 @@ class UrlWriterTests < ActionController::TestCase set.draw do |map| map.main '', :controller => 'posts', :format => nil map.resources :posts - map.connect ':controller/:action/:id' end # We need to create a new class in order to install the new named route. |