diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-01-08 06:17:21 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2012-01-08 06:17:21 +0000 |
commit | 917d42733add932893d4e6e419654f0ea1ac2140 (patch) | |
tree | 7a41c3d4718160e572aea3db74844176d095ba2f | |
parent | c5f41baa945f2d331b791755350bdb8db85da3dd (diff) | |
download | redmine-917d42733add932893d4e6e419654f0ea1ac2140.tar.gz redmine-917d42733add932893d4e6e419654f0ea1ac2140.zip |
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
-rw-r--r-- | test/integration/routing/issue_categories_test.rb | 5 |
1 files changed, 4 insertions, 1 deletions
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' } |