标签: ruby-on-rails-3 testing routes
假设我有一个像这样的命名路线
match '/home' => 'site#home', :as => :home
如何编写测试来检查命名路由?即如果我这样做
assert_routing '/site/home', { :controller => "site", :action => "home" }
测试失败,因为它试图将“/ home”与“/ site / home”匹配