summaryrefslogtreecommitdiffstats
path: root/test/integration/routing/trackers_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/trackers_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/trackers_test.rb')
-rw-r--r--test/integration/routing/trackers_test.rb22
1 files changed, 0 insertions, 22 deletions
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
@@ -24,26 +24,14 @@ class RoutingTrackersTest < ActionDispatch::IntegrationTest
{ :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' }
)
@@ -53,21 +41,11 @@ class RoutingTrackersTest < ActionDispatch::IntegrationTest
: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' }
)