@@ -78,6 +78,17 class IssuesControllerTest < ActionController::TestCase | |||||
78 | assert_tag :tag => 'a', :content => /Subproject issue/ |
|
78 | assert_tag :tag => 'a', :content => /Subproject issue/ | |
79 | end |
|
79 | end | |
80 |
|
80 | |||
|
81 | def test_index_should_not_list_issues_when_module_disabled | |||
|
82 | EnabledModule.delete_all("name = 'issue_tracking' AND project_id = 1") | |||
|
83 | get :index | |||
|
84 | assert_response :success | |||
|
85 | assert_template 'index.rhtml' | |||
|
86 | assert_not_nil assigns(:issues) | |||
|
87 | assert_nil assigns(:project) | |||
|
88 | assert_no_tag :tag => 'a', :content => /Can't print recipes/ | |||
|
89 | assert_tag :tag => 'a', :content => /Subproject issue/ | |||
|
90 | end | |||
|
91 | ||||
81 | def test_index_should_list_visible_issues_only |
|
92 | def test_index_should_list_visible_issues_only | |
82 | get :index, :per_page => 100 |
|
93 | get :index, :per_page => 100 | |
83 | assert_response :success |
|
94 | assert_response :success |
General Comments 0
You need to be logged in to leave comments.
Login now