diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-10-28 20:17:38 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-10-28 20:17:38 +0000 |
commit | beb2610650595d4333fa88eb648146a6a26ad761 (patch) | |
tree | d66e443f66a843a342d04f956b1ad4fb8fb6c682 /test/integration/routing/wiki_test.rb | |
parent | 625eebb720606efbd7e7094a34b8a9ba24ba6954 (diff) | |
download | redmine-beb2610650595d4333fa88eb648146a6a26ad761.tar.gz redmine-beb2610650595d4333fa88eb648146a6a26ad761.zip |
REST API for deleting wiki pages (#7082).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10743 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration/routing/wiki_test.rb')
-rw-r--r-- | test/integration/routing/wiki_test.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/integration/routing/wiki_test.rb b/test/integration/routing/wiki_test.rb index 2c85a62ee..5deeb7ee1 100644 --- a/test/integration/routing/wiki_test.rb +++ b/test/integration/routing/wiki_test.rb @@ -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 |