Skip to content

Commit

Permalink
Add a routing test case covering #2101
Browse files Browse the repository at this point in the history
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2256 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
seckar committed Sep 18, 2005
1 parent 7a4c881 commit 57e0cf8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 2 additions & 0 deletions actionpack/CHANGELOG
@@ -1,5 +1,7 @@
*SVN* *SVN*


* Add a routing test case covering #2101 [Nicholas Seckar]

* Cache relative_url_root for all webservers, not just Apache #2193 [skae] * Cache relative_url_root for all webservers, not just Apache #2193 [skae]


* Speed up cookie use by decreasing string copying #2194 [skae] * Speed up cookie use by decreasing string copying #2194 [skae]
Expand Down
13 changes: 12 additions & 1 deletion actionpack/test/controller/routing_test.rb
Expand Up @@ -897,7 +897,18 @@ def test_named_route_helper_array
test_named_route_method test_named_route_method
assert_equal [:categories_url, :hash_for_categories_url], ::ActionController::Routing::NamedRoutes::Helpers assert_equal [:categories_url, :hash_for_categories_url], ::ActionController::Routing::NamedRoutes::Helpers
end end


def test_nil_defaults
rs.draw do
rs.connect 'journal',
:controller => 'content',
:action => 'list_journal',
:date => nil, :user_id => nil
rs.connect ':controller/:action/:id'
end

assert_equal ['/journal', []], rs.generate(:controller => 'content', :action => 'list_journal', :date => nil, :user_id => nil)
end
end end


end end

0 comments on commit 57e0cf8

Please sign in to comment.