summaryrefslogtreecommitdiffstats
path: root/test/integration/routing/versions_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2014-11-16 10:54:33 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2014-11-16 10:54:33 +0000
commiteae9c9ab2be43c64c830a03e414b51a08571c957 (patch)
treecbe6b20000d60ad854ad8f2e245cbdfeca4b4787 /test/integration/routing/versions_test.rb
parentcd6b2f2268d3e02ae652d3ad37f02170e3647a72 (diff)
downloadredmine-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/versions_test.rb')
-rw-r--r--test/integration/routing/versions_test.rb50
1 files changed, 0 insertions, 50 deletions
diff --git a/test/integration/routing/versions_test.rb b/test/integration/routing/versions_test.rb
index 28a7969c9..865bd3bb3 100644
--- a/test/integration/routing/versions_test.rb
+++ b/test/integration/routing/versions_test.rb
@@ -33,16 +33,6 @@ class RoutingVersionsTest < ActionDispatch::IntegrationTest
:project_id => 'foo' }
)
assert_routing(
- { :method => 'get', :path => "/projects/foo/versions.xml" },
- { :controller => 'versions', :action => 'index',
- :project_id => 'foo', :format => 'xml' }
- )
- assert_routing(
- { :method => 'get', :path => "/projects/foo/versions.json" },
- { :controller => 'versions', :action => 'index',
- :project_id => 'foo', :format => 'json' }
- )
- assert_routing(
{ :method => 'get', :path => "/projects/foo/versions/new" },
{ :controller => 'versions', :action => 'new',
:project_id => 'foo' }
@@ -52,16 +42,6 @@ class RoutingVersionsTest < ActionDispatch::IntegrationTest
{ :controller => 'versions', :action => 'create',
:project_id => 'foo' }
)
- assert_routing(
- { :method => 'post', :path => "/projects/foo/versions.xml" },
- { :controller => 'versions', :action => 'create',
- :project_id => 'foo', :format => 'xml' }
- )
- assert_routing(
- { :method => 'post', :path => "/projects/foo/versions.json" },
- { :controller => 'versions', :action => 'create',
- :project_id => 'foo', :format => 'json' }
- )
end
def test_versions
@@ -70,16 +50,6 @@ class RoutingVersionsTest < ActionDispatch::IntegrationTest
{ :controller => 'versions', :action => 'show', :id => '1' }
)
assert_routing(
- { :method => 'get', :path => "/versions/1.xml" },
- { :controller => 'versions', :action => 'show', :id => '1',
- :format => 'xml' }
- )
- assert_routing(
- { :method => 'get', :path => "/versions/1.json" },
- { :controller => 'versions', :action => 'show', :id => '1',
- :format => 'json' }
- )
- assert_routing(
{ :method => 'get', :path => "/versions/1/edit" },
{ :controller => 'versions', :action => 'edit', :id => '1' }
)
@@ -88,30 +58,10 @@ class RoutingVersionsTest < ActionDispatch::IntegrationTest
{ :controller => 'versions', :action => 'update', :id => '1' }
)
assert_routing(
- { :method => 'put', :path => "/versions/1.xml" },
- { :controller => 'versions', :action => 'update', :id => '1',
- :format => 'xml' }
- )
- assert_routing(
- { :method => 'put', :path => "/versions/1.json" },
- { :controller => 'versions', :action => 'update', :id => '1',
- :format => 'json' }
- )
- assert_routing(
{ :method => 'delete', :path => "/versions/1" },
{ :controller => 'versions', :action => 'destroy', :id => '1' }
)
assert_routing(
- { :method => 'delete', :path => "/versions/1.xml" },
- { :controller => 'versions', :action => 'destroy', :id => '1',
- :format => 'xml' }
- )
- assert_routing(
- { :method => 'delete', :path => "/versions/1.json" },
- { :controller => 'versions', :action => 'destroy', :id => '1',
- :format => 'json' }
- )
- assert_routing(
{ :method => 'post', :path => "/versions/1/status_by" },
{ :controller => 'versions', :action => 'status_by', :id => '1' }
)