From 390841721e61e0037db9f6227c72ee12f4d76180 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Mon, 13 Dec 2021 13:37:33 +0000 Subject: [PATCH] Fix test failure due to r21309 (#13099). git-svn-id: http://svn.redmine.org/redmine/trunk@21311 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/unit/issue_test.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/unit/issue_test.rb b/test/unit/issue_test.rb index cc5359862..2749a7fc3 100644 --- a/test/unit/issue_test.rb +++ b/test/unit/issue_test.rb @@ -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 -- 2.39.5