summaryrefslogtreecommitdiffstats
path: root/test/integration/routing/wiki_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-04-22 17:47:11 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-04-22 17:47:11 +0000
commitbda78a4679bc947dfd42ab92adfc043afd1d2f60 (patch)
tree39ad1356f3024f2dd9ee3a8710e8d9bd46334efc /test/integration/routing/wiki_test.rb
parentb56f77322ac2f6a900ba011e767446e17401cf6f (diff)
downloadredmine-bda78a4679bc947dfd42ab92adfc043afd1d2f60.tar.gz
redmine-bda78a4679bc947dfd42ab92adfc043afd1d2f60.zip
Adds "New wiki page" link to create a new wiki page (#5536).
git-svn-id: http://svn.redmine.org/redmine/trunk@15346 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration/routing/wiki_test.rb')
-rw-r--r--test/integration/routing/wiki_test.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/integration/routing/wiki_test.rb b/test/integration/routing/wiki_test.rb
index 135bb3f1b..c1c176af1 100644
--- a/test/integration/routing/wiki_test.rb
+++ b/test/integration/routing/wiki_test.rb
@@ -30,6 +30,9 @@ class RoutingWikiTest < Redmine::RoutingTest
should_route 'GET /projects/foo/wiki/page' => 'wiki#show', :project_id => 'foo', :id => 'page'
should_route 'GET /projects/foo/wiki/page.pdf' => 'wiki#show', :project_id => 'foo', :id => 'page', :format => 'pdf'
+ should_route 'GET /projects/foo/wiki/new' => 'wiki#new', :project_id => 'foo'
+ should_route 'POST /projects/foo/wiki/new' => 'wiki#new', :project_id => 'foo'
+
should_route 'GET /projects/foo/wiki/page/edit' => 'wiki#edit', :project_id => 'foo', :id => 'page'
should_route 'PUT /projects/foo/wiki/page' => 'wiki#update', :project_id => 'foo', :id => 'page'
should_route 'DELETE /projects/foo/wiki/page' => 'wiki#destroy', :project_id => 'foo', :id => 'page'