From eae9c9ab2be43c64c830a03e414b51a08571c957 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 16 Nov 2014 10:54:33 +0000 Subject: 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 --- test/integration/routing/trackers_test.rb | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'test/integration/routing/trackers_test.rb') diff --git a/test/integration/routing/trackers_test.rb b/test/integration/routing/trackers_test.rb index 338197d8c..05724c92e 100644 --- a/test/integration/routing/trackers_test.rb +++ b/test/integration/routing/trackers_test.rb @@ -23,26 +23,14 @@ class RoutingTrackersTest < ActionDispatch::IntegrationTest { :method => 'get', :path => "/trackers" }, { :controller => 'trackers', :action => 'index' } ) - assert_routing( - { :method => 'get', :path => "/trackers.xml" }, - { :controller => 'trackers', :action => 'index', :format => 'xml' } - ) assert_routing( { :method => 'post', :path => "/trackers" }, { :controller => 'trackers', :action => 'create' } ) - assert_routing( - { :method => 'post', :path => "/trackers.xml" }, - { :controller => 'trackers', :action => 'create', :format => 'xml' } - ) assert_routing( { :method => 'get', :path => "/trackers/new" }, { :controller => 'trackers', :action => 'new' } ) - assert_routing( - { :method => 'get', :path => "/trackers/new.xml" }, - { :controller => 'trackers', :action => 'new', :format => 'xml' } - ) assert_routing( { :method => 'get', :path => "/trackers/1/edit" }, { :controller => 'trackers', :action => 'edit', :id => '1' } @@ -52,21 +40,11 @@ class RoutingTrackersTest < ActionDispatch::IntegrationTest { :controller => 'trackers', :action => 'update', :id => '1' } ) - assert_routing( - { :method => 'put', :path => "/trackers/1.xml" }, - { :controller => 'trackers', :action => 'update', - :format => 'xml', :id => '1' } - ) assert_routing( { :method => 'delete', :path => "/trackers/1" }, { :controller => 'trackers', :action => 'destroy', :id => '1' } ) - assert_routing( - { :method => 'delete', :path => "/trackers/1.xml" }, - { :controller => 'trackers', :action => 'destroy', - :format => 'xml', :id => '1' } - ) assert_routing( { :method => 'get', :path => "/trackers/fields" }, { :controller => 'trackers', :action => 'fields' } -- cgit v1.2.3