summaryrefslogtreecommitdiffstats
path: root/test/integration/routing/wiki_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-01-30 18:42:14 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-01-30 18:42:14 +0000
commit3d27bf5318ef22d5d66e1863a62c3c6c1f203d66 (patch)
tree41da619407d5a38bd1538434597fc34fdb23d310 /test/integration/routing/wiki_test.rb
parenta03c585a84d3197e0c35617dc78c9e3ca264c56a (diff)
downloadredmine-3d27bf5318ef22d5d66e1863a62c3c6c1f203d66.tar.gz
redmine-3d27bf5318ef22d5d66e1863a62c3c6c1f203d66.zip
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
Diffstat (limited to 'test/integration/routing/wiki_test.rb')
-rw-r--r--test/integration/routing/wiki_test.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/integration/routing/wiki_test.rb b/test/integration/routing/wiki_test.rb
index 1445442b5..35ee4310c 100644
--- a/test/integration/routing/wiki_test.rb
+++ b/test/integration/routing/wiki_test.rb
@@ -29,6 +29,11 @@ class RoutingWikiTest < ActionController::IntegrationTest
: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',
:id => 'CookBook_documentation' }
@@ -60,6 +65,10 @@ class RoutingWikiTest < ActionController::IntegrationTest
{ :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' }
)