@@ -18,7 +18,7 | |||||
18 | require File.expand_path('../../../test_helper', __FILE__) |
|
18 | require File.expand_path('../../../test_helper', __FILE__) | |
19 |
|
19 | |||
20 | class RoutingIssueCategoriesTest < ActionController::IntegrationTest |
|
20 | class RoutingIssueCategoriesTest < ActionController::IntegrationTest | |
21 | def test_issue_categories |
|
21 | def test_issue_categories_scoped_under_project | |
22 | assert_routing( |
|
22 | assert_routing( | |
23 | { :method => 'get', :path => "/projects/foo/issue_categories" }, |
|
23 | { :method => 'get', :path => "/projects/foo/issue_categories" }, | |
24 | { :controller => 'issue_categories', :action => 'index', |
|
24 | { :controller => 'issue_categories', :action => 'index', | |
@@ -54,6 +54,9 class RoutingIssueCategoriesTest < ActionController::IntegrationTest | |||||
54 | { :controller => 'issue_categories', :action => 'create', |
|
54 | { :controller => 'issue_categories', :action => 'create', | |
55 | :project_id => 'foo', :format => 'json' } |
|
55 | :project_id => 'foo', :format => 'json' } | |
56 | ) |
|
56 | ) | |
|
57 | end | |||
|
58 | ||||
|
59 | def test_issue_categories | |||
57 | assert_routing( |
|
60 | assert_routing( | |
58 | { :method => 'get', :path => "/issue_categories/1" }, |
|
61 | { :method => 'get', :path => "/issue_categories/1" }, | |
59 | { :controller => 'issue_categories', :action => 'show', :id => '1' } |
|
62 | { :controller => 'issue_categories', :action => 'show', :id => '1' } |
General Comments 0
You need to be logged in to leave comments.
Login now