From: Go MAEDA Date: Mon, 13 Dec 2021 13:37:33 +0000 (+0000) Subject: Fix test failure due to r21309 (#13099). X-Git-Tag: 5.0.0~155 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=390841721e61e0037db9f6227c72ee12f4d76180;p=redmine.git Fix test failure due to r21309 (#13099). git-svn-id: http://svn.redmine.org/redmine/trunk@21311 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- 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