mirror of
https://github.com/redmine/redmine.git
synced 2025-11-08 14:26:04 +01:00
Use should_route in routing tests.
git-svn-id: http://svn.redmine.org/redmine/trunk@13608 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -17,31 +17,13 @@
|
||||
|
||||
require File.expand_path('../../../test_helper', __FILE__)
|
||||
|
||||
class RoutingAdminTest < ActionDispatch::IntegrationTest
|
||||
class RoutingAdminTest < Redmine::RoutingTest
|
||||
def test_administration_panel
|
||||
assert_routing(
|
||||
{ :method => 'get', :path => "/admin" },
|
||||
{ :controller => 'admin', :action => 'index' }
|
||||
)
|
||||
assert_routing(
|
||||
{ :method => 'get', :path => "/admin/projects" },
|
||||
{ :controller => 'admin', :action => 'projects' }
|
||||
)
|
||||
assert_routing(
|
||||
{ :method => 'get', :path => "/admin/plugins" },
|
||||
{ :controller => 'admin', :action => 'plugins' }
|
||||
)
|
||||
assert_routing(
|
||||
{ :method => 'get', :path => "/admin/info" },
|
||||
{ :controller => 'admin', :action => 'info' }
|
||||
)
|
||||
assert_routing(
|
||||
{ :method => 'get', :path => "/admin/test_email" },
|
||||
{ :controller => 'admin', :action => 'test_email' }
|
||||
)
|
||||
assert_routing(
|
||||
{ :method => 'post', :path => "/admin/default_configuration" },
|
||||
{ :controller => 'admin', :action => 'default_configuration' }
|
||||
)
|
||||
should_route 'GET /admin' => 'admin#index'
|
||||
should_route 'GET /admin/projects' => 'admin#projects'
|
||||
should_route 'GET /admin/plugins' => 'admin#plugins'
|
||||
should_route 'GET /admin/info' => 'admin#info'
|
||||
should_route 'GET /admin/test_email' => 'admin#test_email'
|
||||
should_route 'POST /admin/default_configuration' => 'admin#default_configuration'
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user