From b128fcaf0d02e0d4fc23228d9cb3e5ef13ebdc25 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Fri, 2 Sep 2011 01:29:54 +0000 Subject: [PATCH] back out r7036. I mistook merged revision of the revision comment. r7035 is wrong. r7033 is correct. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.2-stable@7037 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/functional/issues_controller_test.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb index 5faf3f886..36497acc6 100644 --- a/test/functional/issues_controller_test.rb +++ b/test/functional/issues_controller_test.rb @@ -78,6 +78,17 @@ class IssuesControllerTest < ActionController::TestCase assert_tag :tag => 'a', :content => /Subproject issue/ end + def test_index_should_not_list_issues_when_module_disabled + EnabledModule.delete_all("name = 'issue_tracking' AND project_id = 1") + get :index + assert_response :success + assert_template 'index.rhtml' + assert_not_nil assigns(:issues) + assert_nil assigns(:project) + assert_no_tag :tag => 'a', :content => /Can't print recipes/ + assert_tag :tag => 'a', :content => /Subproject issue/ + end + def test_index_should_list_visible_issues_only get :index, :per_page => 100 assert_response :success