]> source.dussan.org Git - redmine.git/commitdiff
Fix test failure due to r21309 (#13099).
authorGo MAEDA <maeda@farend.jp>
Mon, 13 Dec 2021 13:37:33 +0000 (13:37 +0000)
committerGo MAEDA <maeda@farend.jp>
Mon, 13 Dec 2021 13:37:33 +0000 (13:37 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@21311 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/issue_test.rb

index cc53598622424411438e5f6ba86287c5ad395221..2749a7fc35c35e3fedc9f3ce39840fef607199e2 100644 (file)
@@ -2888,8 +2888,8 @@ class IssueTest < ActiveSupport::TestCase
 
     groups = Issue.by_version(project)
     groups_containing_subprojects = Issue.by_version(project, true)
-    assert_equal 3, groups.inject(0) {|sum, group| sum + group['total'].to_i}
-    assert_equal 4, groups_containing_subprojects.inject(0) {|sum, group| sum + group['total'].to_i}
+    assert_equal 7, groups.inject(0) {|sum, group| sum + group['total'].to_i}
+    assert_equal 14, groups_containing_subprojects.inject(0) {|sum, group| sum + group['total'].to_i}
   end
 
   test "#by_priority" do
@@ -2909,8 +2909,8 @@ class IssueTest < ActiveSupport::TestCase
 
     groups = Issue.by_category(project)
     groups_containing_subprojects = Issue.by_category(project, true)
-    assert_equal 3, groups.inject(0) {|sum, group| sum + group['total'].to_i}
-    assert_equal 4, groups_containing_subprojects.inject(0) {|sum, group| sum + group['total'].to_i}
+    assert_equal 7, groups.inject(0) {|sum, group| sum + group['total'].to_i}
+    assert_equal 14, groups_containing_subprojects.inject(0) {|sum, group| sum + group['total'].to_i}
   end
 
   test "#by_assigned_to" do
@@ -2920,8 +2920,8 @@ class IssueTest < ActiveSupport::TestCase
 
     groups = Issue.by_assigned_to(project)
     groups_containing_subprojects = Issue.by_assigned_to(project, true)
-    assert_equal 2, groups.inject(0) {|sum, group| sum + group['total'].to_i}
-    assert_equal 3, groups_containing_subprojects.inject(0) {|sum, group| sum + group['total'].to_i}
+    assert_equal 7, groups.inject(0) {|sum, group| sum + group['total'].to_i}
+    assert_equal 14, groups_containing_subprojects.inject(0) {|sum, group| sum + group['total'].to_i}
   end
 
   test "#by_author" do