aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/test_test.rb
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2009-12-08 17:41:00 -0600
committerJoshua Peek <josh@joshpeek.com>2009-12-08 17:41:00 -0600
commit9fbde11b8b2a43206bcd1a135e763751cae98264 (patch)
tree8757a96d36ea1775da1cc35432a700b736ed1bf9 /actionpack/test/controller/test_test.rb
parent511cef296bd07fa43794e029e12e4cd1053aa8d1 (diff)
downloadrails-9fbde11b8b2a43206bcd1a135e763751cae98264.tar.gz
rails-9fbde11b8b2a43206bcd1a135e763751cae98264.tar.bz2
rails-9fbde11b8b2a43206bcd1a135e763751cae98264.zip
More test porting
Diffstat (limited to 'actionpack/test/controller/test_test.rb')
-rw-r--r--actionpack/test/controller/test_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/test/controller/test_test.rb b/actionpack/test/controller/test_test.rb
index 52020922f2..a788b2495e 100644
--- a/actionpack/test/controller/test_test.rb
+++ b/actionpack/test/controller/test_test.rb
@@ -456,8 +456,8 @@ XML
def test_array_path_parameter_handled_properly
with_routing do |set|
set.draw do |map|
- map.connect 'file/*path', :controller => 'test_test/test', :action => 'test_params'
- map.connect ':controller/:action/:id'
+ match 'file/*path', :to => 'test_test/test#test_params'
+ match ':controller/:action'
end
get :test_params, :path => ['hello', 'world']
@@ -662,7 +662,7 @@ class NamedRoutesControllerTest < ActionController::TestCase
def test_should_be_able_to_use_named_routes_before_a_request_is_done
with_routing do |set|
- set.draw { |map| map.resources :contents }
+ set.draw { |map| resources :contents }
assert_equal 'http://test.host/contents/new', new_content_url
assert_equal 'http://test.host/contents/1', content_url(:id => 1)
end