Ticket #8039: assert_routing_with_path_as_hash.diff
| File assert_routing_with_path_as_hash.diff, 1.1 kB (added by packagethief, 2 years ago) |
|---|
-
actionpack/test/controller/test_test.rb
old new 321 321 assert_routing 'content', :controller => 'content', :action => 'index' 322 322 end 323 323 324 def test_assert_routing_with_path_as_hash 325 assert_routing({:path => 'content', :method => :get}, :controller => 'content', :action => 'index') 326 end 327 324 328 def test_assert_routing_in_module 325 329 assert_routing 'admin/user', :controller => 'admin/user', :action => 'index' 326 330 end -
actionpack/lib/action_controller/assertions/routing_assertions.rb
old new 78 78 options[:controller] = "/#{controller}" 79 79 end 80 80 81 path = path[:path] if path.is_a? Hash 81 82 assert_generates(path, options, defaults, extras, message) 82 83 end 83 84