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:
Toshi MARUYAMA 2012-01-08 06:17:21 +00:00
parent c5f41baa94
commit 917d42733a
1 changed files with 4 additions and 1 deletions

View File

@ -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' }