mirror of
https://github.com/redmine/redmine.git
synced 2025-11-01 10:56:17 +01:00
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
This commit is contained in:
@@ -27,14 +27,6 @@ class RoutingNewsTest < ActionDispatch::IntegrationTest
|
||||
{ :method => 'get', :path => "/news.atom" },
|
||||
{ :controller => 'news', :action => 'index', :format => 'atom' }
|
||||
)
|
||||
assert_routing(
|
||||
{ :method => 'get', :path => "/news.xml" },
|
||||
{ :controller => 'news', :action => 'index', :format => 'xml' }
|
||||
)
|
||||
assert_routing(
|
||||
{ :method => 'get', :path => "/news.json" },
|
||||
{ :controller => 'news', :action => 'index', :format => 'json' }
|
||||
)
|
||||
end
|
||||
|
||||
def test_news
|
||||
@@ -70,16 +62,6 @@ class RoutingNewsTest < ActionDispatch::IntegrationTest
|
||||
{ :controller => 'news', :action => 'index', :format => 'atom',
|
||||
:project_id => '567' }
|
||||
)
|
||||
assert_routing(
|
||||
{ :method => 'get', :path => "/projects/567/news.xml" },
|
||||
{ :controller => 'news', :action => 'index', :format => 'xml',
|
||||
:project_id => '567' }
|
||||
)
|
||||
assert_routing(
|
||||
{ :method => 'get', :path => "/projects/567/news.json" },
|
||||
{ :controller => 'news', :action => 'index', :format => 'json',
|
||||
:project_id => '567' }
|
||||
)
|
||||
assert_routing(
|
||||
{ :method => 'get', :path => "/projects/567/news/new" },
|
||||
{ :controller => 'news', :action => 'new', :project_id => '567' }
|
||||
|
||||
Reference in New Issue
Block a user