mirror of
https://github.com/redmine/redmine.git
synced 2025-11-02 11:25:55 +01:00
Resourcified auth_sources.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9233 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -28,28 +28,28 @@ class RoutingAuthSourcesTest < ActionController::IntegrationTest
|
||||
{ :controller => 'auth_sources', :action => 'new' }
|
||||
)
|
||||
assert_routing(
|
||||
{ :method => 'post', :path => "/auth_sources/create" },
|
||||
{ :method => 'post', :path => "/auth_sources" },
|
||||
{ :controller => 'auth_sources', :action => 'create' }
|
||||
)
|
||||
assert_routing(
|
||||
{ :method => 'post', :path => "/auth_sources/destroy/1234" },
|
||||
{ :controller => 'auth_sources', :action => 'destroy',
|
||||
:id => '1234' }
|
||||
)
|
||||
assert_routing(
|
||||
{ :method => 'get', :path => "/auth_sources/test_connection/1234" },
|
||||
{ :controller => 'auth_sources', :action => 'test_connection',
|
||||
:id => '1234' }
|
||||
)
|
||||
assert_routing(
|
||||
{ :method => 'get', :path => "/auth_sources/edit/1234" },
|
||||
{ :method => 'get', :path => "/auth_sources/1234/edit" },
|
||||
{ :controller => 'auth_sources', :action => 'edit',
|
||||
:id => '1234' }
|
||||
)
|
||||
assert_routing(
|
||||
{ :method => 'post', :path => "/auth_sources/update/1234" },
|
||||
{ :method => 'put', :path => "/auth_sources/1234" },
|
||||
{ :controller => 'auth_sources', :action => 'update',
|
||||
:id => '1234' }
|
||||
)
|
||||
assert_routing(
|
||||
{ :method => 'delete', :path => "/auth_sources/1234" },
|
||||
{ :controller => 'auth_sources', :action => 'destroy',
|
||||
:id => '1234' }
|
||||
)
|
||||
assert_routing(
|
||||
{ :method => 'get', :path => "/auth_sources/1234/test_connection" },
|
||||
{ :controller => 'auth_sources', :action => 'test_connection',
|
||||
:id => '1234' }
|
||||
)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user