diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2006-08-01 00:29:02 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2006-08-01 00:29:02 +0000 |
commit | a247d72139f918e38c129d31572167db5170ee5d (patch) | |
tree | 6365799015caf2a17978b0a4b9a94e9876f8df21 /actionpack/test | |
parent | 78e37f45c64838b120699317068cf1950277897c (diff) | |
download | rails-a247d72139f918e38c129d31572167db5170ee5d.tar.gz rails-a247d72139f918e38c129d31572167db5170ee5d.tar.bz2 rails-a247d72139f918e38c129d31572167db5170ee5d.zip |
Nesting map.resources
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4642 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/controller/resources_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/test/controller/resources_test.rb b/actionpack/test/controller/resources_test.rb index 96b6431567..e2ef2a819d 100644 --- a/actionpack/test/controller/resources_test.rb +++ b/actionpack/test/controller/resources_test.rb @@ -114,15 +114,15 @@ class ResourcesTest < Test::Unit::TestCase end end - def xtest_nested_restful_routes + def test_nested_restful_routes with_routing do |set| set.draw do |map| - map.resources(:messages) do + map.resources(:messages) do |map| map.resources(:comments) end end - with_options({ :controller => :comments }) do |controller| + with_options(:controller => 'comments', :message_id => '1') do |controller| controller.assert_routing "/messages/1/comments", :action => 'index' controller.assert_routing "/messages/1/comments.xml" , :action => 'index', :format => 'xml' controller.assert_routing "/messages/1/comments/new", :action => 'new' |