From 917d42733add932893d4e6e419654f0ea1ac2140 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sun, 8 Jan 2012 06:17:21 +0000 Subject: [PATCH] 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 --- test/integration/routing/issue_categories_test.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/integration/routing/issue_categories_test.rb b/test/integration/routing/issue_categories_test.rb index 761de8260..33f5fa5e3 100644 --- a/test/integration/routing/issue_categories_test.rb +++ b/test/integration/routing/issue_categories_test.rb @@ -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' }