diff options
Diffstat (limited to 'test/integration/routing/versions_test.rb')
-rw-r--r-- | test/integration/routing/versions_test.rb | 50 |
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' } ) |