aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/url_for_test.rb
diff options
context:
space:
mode:
authorPiotr Sarnacki <drogus@gmail.com>2010-08-05 15:44:23 +0200
committerPiotr Sarnacki <drogus@gmail.com>2010-09-05 13:44:36 +0200
commitb3eb26a161acb23781e55fc6c37b948f160cd9b5 (patch)
tree3c8e43a17dc5fe06eb3b4552d04d479863161fb5 /actionpack/test/controller/url_for_test.rb
parent91fec0d24d50d3b3e90c48b2501ca913544781cc (diff)
downloadrails-b3eb26a161acb23781e55fc6c37b948f160cd9b5.tar.gz
rails-b3eb26a161acb23781e55fc6c37b948f160cd9b5.tar.bz2
rails-b3eb26a161acb23781e55fc6c37b948f160cd9b5.zip
Removed deprecated RouteSet API, still many tests fail
Diffstat (limited to 'actionpack/test/controller/url_for_test.rb')
-rw-r--r--actionpack/test/controller/url_for_test.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/actionpack/test/controller/url_for_test.rb b/actionpack/test/controller/url_for_test.rb
index 71a4a43477..5552a0b0f9 100644
--- a/actionpack/test/controller/url_for_test.rb
+++ b/actionpack/test/controller/url_for_test.rb
@@ -130,7 +130,7 @@ module AbstractController
def test_named_routes
with_routing do |set|
- set.draw do |map|
+ set.draw do
match 'this/is/verbose', :to => 'home#index', :as => :no_args
match 'home/sweet/home/:user', :to => 'home#index', :as => :home
end
@@ -151,7 +151,7 @@ module AbstractController
def test_relative_url_root_is_respected_for_named_routes
with_routing do |set|
- set.draw do |map|
+ set.draw do
match '/home/sweet/home/:user', :to => 'home#index', :as => :home
end
@@ -165,7 +165,7 @@ module AbstractController
def test_only_path
with_routing do |set|
- set.draw do |map|
+ set.draw do
match 'home/sweet/home/:user', :to => 'home#index', :as => :home
match ':controller/:action/:id'
end
@@ -233,7 +233,7 @@ module AbstractController
def test_named_routes_with_nil_keys
with_routing do |set|
- set.draw do |map|
+ set.draw do
match 'posts.:format', :to => 'posts#index', :as => :posts
match '/', :to => 'posts#index', :as => :main
end