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