REST API for deleting wiki pages (#7082).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10743 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -168,5 +168,15 @@ class RoutingWikiTest < ActionController::IntegrationTest
|
||||
{ :controller => 'wiki', :action => 'update', :project_id => '567',
|
||||
:id => 'my_page', :format => 'json' }
|
||||
)
|
||||
assert_routing(
|
||||
{ :method => 'delete', :path => "/projects/567/wiki/my_page.xml" },
|
||||
{ :controller => 'wiki', :action => 'destroy', :project_id => '567',
|
||||
:id => 'my_page', :format => 'xml' }
|
||||
)
|
||||
assert_routing(
|
||||
{ :method => 'delete', :path => "/projects/567/wiki/my_page.json" },
|
||||
{ :controller => 'wiki', :action => 'destroy', :project_id => '567',
|
||||
:id => 'my_page', :format => 'json' }
|
||||
)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user