diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-10-23 18:45:14 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-10-23 18:45:14 +0000 |
commit | 6cccdce06eff37c51b0802ad2b85a71497084523 (patch) | |
tree | 45ff4588eca7da9fbc1f3de364eafa1ff128b672 /test/integration/routing/wiki_test.rb | |
parent | 9e7f71080f9230656e8a6981d14576f4b3d40a79 (diff) | |
download | redmine-6cccdce06eff37c51b0802ad2b85a71497084523.tar.gz redmine-6cccdce06eff37c51b0802ad2b85a71497084523.zip |
Ability to delete a version from a wiki page history (#10852).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10705 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 2afc29eea..e7f6fa0f7 100644 --- a/test/integration/routing/wiki_test.rb +++ b/test/integration/routing/wiki_test.rb @@ -39,6 +39,11 @@ class RoutingWikiTest < ActionController::IntegrationTest :id => 'CookBook_documentation' } ) assert_routing( + { :method => 'get', :path => "/projects/1/wiki/CookBook_documentation/2" }, + { :controller => 'wiki', :action => 'show', :project_id => '1', + :id => 'CookBook_documentation', :version => '2' } + ) + assert_routing( { :method => 'get', :path => "/projects/1/wiki/CookBook_documentation/2/diff" }, { :controller => 'wiki', :action => 'diff', :project_id => '1', :id => 'CookBook_documentation', :version => '2' } @@ -117,5 +122,10 @@ class RoutingWikiTest < ActionController::IntegrationTest { :controller => 'wiki', :action => 'destroy', :project_id => '22', :id => 'ladida' } ) + assert_routing( + { :method => 'delete', :path => "/projects/22/wiki/ladida/3" }, + { :controller => 'wiki', :action => 'destroy_version', :project_id => '22', + :id => 'ladida', :version => '3' } + ) end end |