Permalink
Browse files

restore some commented lines

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4245 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 0a0b5bd commit e75d27f405d755c1dda42f4c757ac4ac0cfaca4f @jamis jamis committed Apr 21, 2006
Showing with 13 additions and 13 deletions.
  1. +13 −13 actionpack/test/controller/routing_test.rb
@@ -1003,23 +1003,23 @@ def test_subpath_recognized
Object.const_set(:SubpathBooksController, Class.new(ActionController::Base))
rs.draw do |r|
- #r.connect '/books/:id;edit', :controller => 'subpath_books', :action => 'edit'
- #r.connect '/items/:id;:action', :controller => 'subpath_books'
+ r.connect '/books/:id;edit', :controller => 'subpath_books', :action => 'edit'
+ r.connect '/items/:id;:action', :controller => 'subpath_books'
r.connect '/posts/new;:action', :controller => 'subpath_books'
r.connect '/posts/:id', :controller => 'subpath_books', :action => "show"
end
- # hash = rs.recognize_path %w(books 17;edit)
- # assert_not_nil hash
- # assert_equal %w(subpath_books 17 edit), [hash["controller"].controller_name, hash["id"], hash["action"]]
- #
- # hash = rs.recognize_path %w(items 3;complete)
- # assert_not_nil hash
- # assert_equal %w(subpath_books 3 complete), [hash["controller"].controller_name, hash["id"], hash["action"]]
- #
- # hash = rs.recognize_path %w(posts new;preview)
- # assert_not_nil hash
- # assert_equal %w(subpath_books preview), [hash["controller"].controller_name, hash["action"]]
+ hash = rs.recognize_path %w(books 17;edit)
+ assert_not_nil hash
+ assert_equal %w(subpath_books 17 edit), [hash["controller"].controller_name, hash["id"], hash["action"]]
+
+ hash = rs.recognize_path %w(items 3;complete)
+ assert_not_nil hash
+ assert_equal %w(subpath_books 3 complete), [hash["controller"].controller_name, hash["id"], hash["action"]]
+
+ hash = rs.recognize_path %w(posts new;preview)
+ assert_not_nil hash
+ assert_equal %w(subpath_books preview), [hash["controller"].controller_name, hash["action"]]
hash = rs.recognize_path %w(posts 7)
assert_not_nil hash

0 comments on commit e75d27f

Please sign in to comment.