diff options
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 |