diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-11-16 10:54:33 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-11-16 10:54:33 +0000 |
commit | eae9c9ab2be43c64c830a03e414b51a08571c957 (patch) | |
tree | cbe6b20000d60ad854ad8f2e245cbdfeca4b4787 /test/integration/routing/wiki_test.rb | |
parent | cd6b2f2268d3e02ae652d3ad37f02170e3647a72 (diff) | |
download | redmine-eae9c9ab2be43c64c830a03e414b51a08571c957.tar.gz redmine-eae9c9ab2be43c64c830a03e414b51a08571c957.zip |
Isolates all API routing tests to a specific test case.
git-svn-id: http://svn.redmine.org/redmine/trunk@13604 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration/routing/wiki_test.rb')
-rw-r--r-- | test/integration/routing/wiki_test.rb | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/test/integration/routing/wiki_test.rb b/test/integration/routing/wiki_test.rb index f677856a8..09e852497 100644 --- a/test/integration/routing/wiki_test.rb +++ b/test/integration/routing/wiki_test.rb @@ -132,55 +132,4 @@ class RoutingWikiTest < ActionDispatch::IntegrationTest :id => 'ladida', :version => '3' } ) end - - def test_api - assert_routing( - { :method => 'get', :path => "/projects/567/wiki/my_page.xml" }, - { :controller => 'wiki', :action => 'show', :project_id => '567', - :id => 'my_page', :format => 'xml' } - ) - assert_routing( - { :method => 'get', :path => "/projects/567/wiki/my_page.json" }, - { :controller => 'wiki', :action => 'show', :project_id => '567', - :id => 'my_page', :format => 'json' } - ) - assert_routing( - { :method => 'get', :path => "/projects/1/wiki/CookBook_documentation/2.xml" }, - { :controller => 'wiki', :action => 'show', :project_id => '1', - :id => 'CookBook_documentation', :version => '2', :format => 'xml' } - ) - assert_routing( - { :method => 'get', :path => "/projects/1/wiki/CookBook_documentation/2.json" }, - { :controller => 'wiki', :action => 'show', :project_id => '1', - :id => 'CookBook_documentation', :version => '2', :format => 'json' } - ) - assert_routing( - { :method => 'get', :path => "/projects/567/wiki/index.xml" }, - { :controller => 'wiki', :action => 'index', :project_id => '567', :format => 'xml' } - ) - assert_routing( - { :method => 'get', :path => "/projects/567/wiki/index.json" }, - { :controller => 'wiki', :action => 'index', :project_id => '567', :format => 'json' } - ) - assert_routing( - { :method => 'put', :path => "/projects/567/wiki/my_page.xml" }, - { :controller => 'wiki', :action => 'update', :project_id => '567', - :id => 'my_page', :format => 'xml' } - ) - assert_routing( - { :method => 'put', :path => "/projects/567/wiki/my_page.json" }, - { :controller => 'wiki', :action => 'update', :project_id => '567', - :id => 'my_page', :format => 'json' } - ) - assert_routing( - { :method => 'delete', :path => "/projects/567/wiki/my_page.xml" }, - { :controller => 'wiki', :action => 'destroy', :project_id => '567', - :id => 'my_page', :format => 'xml' } - ) - assert_routing( - { :method => 'delete', :path => "/projects/567/wiki/my_page.json" }, - { :controller => 'wiki', :action => 'destroy', :project_id => '567', - :id => 'my_page', :format => 'json' } - ) - end end |