Fixed: "None" category issue count is empty while grouping by category (#4308).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3112 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2009-12-02 18:57:17 +00:00
parent 8b8c24e61f
commit 346c569f98
8 changed files with 115 additions and 49 deletions

View File

@@ -177,10 +177,7 @@ class IssuesControllerTest < ActionController::TestCase
assert_response :success
assert_template 'index.rhtml'
assert_not_nil assigns(:issues)
count_by_group = assigns(:issue_count_by_group)
assert_kind_of Hash, count_by_group
assert_kind_of Tracker, count_by_group.keys.first
assert_not_nil count_by_group[Tracker.find(1)]
assert_not_nil assigns(:issue_count_by_group)
end
def test_index_with_query_grouped_by_list_custom_field
@@ -188,10 +185,7 @@ class IssuesControllerTest < ActionController::TestCase
assert_response :success
assert_template 'index.rhtml'
assert_not_nil assigns(:issues)
count_by_group = assigns(:issue_count_by_group)
assert_kind_of Hash, count_by_group
assert_kind_of String, count_by_group.keys.first
assert_not_nil count_by_group['MySQL']
assert_not_nil assigns(:issue_count_by_group)
end
def test_index_sort_by_field_not_included_in_columns