鉴于我有一个命名的路线:
map.some_route '/some_routes/:id',:controller => 'some',:action => 'other'
如何使用路由规范文件“spec / routing / some_routing_spec.rb”来测试该命名路由?@H_403_5@
我已经尝试过这个“describe SomeRouteController”块,它不起作用,我得到’undefined方法“帮助”:@H_403_5@
describe SomeRouteHelper,'some routes named routes' do it 'should recognize some_route' do helper.some_route_path(23).should == '/some_routes/23' end end