提交 57e0cf8e 编写于 作者: N Nicholas Seckar

Add a routing test case covering #2101

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2256 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
上级 7a4c8815
*SVN*
* Add a routing test case covering #2101 [Nicholas Seckar]
* Cache relative_url_root for all webservers, not just Apache #2193 [skae]
* Speed up cookie use by decreasing string copying #2194 [skae]
......
......@@ -897,7 +897,18 @@ def test_named_route_helper_array
test_named_route_method
assert_equal [:categories_url, :hash_for_categories_url], ::ActionController::Routing::NamedRoutes::Helpers
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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册