Adds export of all wiki pages to a PDF file (#3463).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8734 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2012-01-30 18:42:14 +00:00
parent a03c585a84
commit 3d27bf5318
6 changed files with 85 additions and 15 deletions
+9
View File
@@ -28,6 +28,11 @@ class RoutingWikiTest < ActionController::IntegrationTest
{ :controller => 'wiki', :action => 'show', :project_id => '567',
:id => 'lalala' }
)
assert_routing(
{ :method => 'get', :path => "/projects/567/wiki/lalala.pdf" },
{ :controller => 'wiki', :action => 'show', :project_id => '567',
:id => 'lalala', :format => 'pdf' }
)
assert_routing(
{ :method => 'get', :path => "/projects/1/wiki/CookBook_documentation/diff" },
{ :controller => 'wiki', :action => 'diff', :project_id => '1',
@@ -59,6 +64,10 @@ class RoutingWikiTest < ActionController::IntegrationTest
{ :method => 'get', :path => "/projects/567/wiki/export" },
{ :controller => 'wiki', :action => 'export', :project_id => '567' }
)
assert_routing(
{ :method => 'get', :path => "/projects/567/wiki/export.pdf" },
{ :controller => 'wiki', :action => 'export', :project_id => '567', :format => 'pdf' }
)
assert_routing(
{ :method => 'get', :path => "/projects/567/wiki/index" },
{ :controller => 'wiki', :action => 'index', :project_id => '567' }