mirror of
https://github.com/redmine/redmine.git
synced 2026-06-25 03:51:08 +02:00
test: route: split issue categories test whether scoped under project or not
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8548 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
require File.expand_path('../../../test_helper', __FILE__)
|
||||
|
||||
class RoutingIssueCategoriesTest < ActionController::IntegrationTest
|
||||
def test_issue_categories
|
||||
def test_issue_categories_scoped_under_project
|
||||
assert_routing(
|
||||
{ :method => 'get', :path => "/projects/foo/issue_categories" },
|
||||
{ :controller => 'issue_categories', :action => 'index',
|
||||
@@ -54,6 +54,9 @@ class RoutingIssueCategoriesTest < ActionController::IntegrationTest
|
||||
{ :controller => 'issue_categories', :action => 'create',
|
||||
:project_id => 'foo', :format => 'json' }
|
||||
)
|
||||
end
|
||||
|
||||
def test_issue_categories
|
||||
assert_routing(
|
||||
{ :method => 'get', :path => "/issue_categories/1" },
|
||||
{ :controller => 'issue_categories', :action => 'show', :id => '1' }
|
||||
|
||||
Reference in New Issue
Block a user