test: replace "should_route" of "administration panel" to "assert_routing" at integration/routing_test.rb

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8204 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-12-14 13:05:08 +00:00
parent e499904e3a
commit 98fb0dd565
1 changed files with 5 additions and 2 deletions

View File

@ -481,7 +481,10 @@ class RoutingTest < ActionController::IntegrationTest
should_route :post, "/projects/ladida/wiki/destroy", :controller => 'wikis', :action => 'destroy', :id => 'ladida' should_route :post, "/projects/ladida/wiki/destroy", :controller => 'wikis', :action => 'destroy', :id => 'ladida'
end end
context "administration panel" do def test_administration_panel
should_route :get, "/admin/projects", :controller => 'admin', :action => 'projects' assert_routing(
{ :method => 'get', :path => "/admin/projects" },
{ :controller => 'admin', :action => 'projects' }
)
end end
end end