summaryrefslogtreecommitdiffstats
path: root/test/unit/issue_subtasking_test.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2019-08-09 09:50:20 +0000
committerGo MAEDA <maeda@farend.jp>2019-08-09 09:50:20 +0000
commitdedcde4f070d366d3b75c945a7e6be9c3c12699f (patch)
tree8341dfb724436bbc6759dfe6eb821b591414943d /test/unit/issue_subtasking_test.rb
parent7b2482f5ba23a5555ed0d7ba3a9f202036fb8f75 (diff)
downloadredmine-dedcde4f070d366d3b75c945a7e6be9c3c12699f.tar.gz
redmine-dedcde4f070d366d3b75c945a7e6be9c3c12699f.zip
Merged r18356 from trunk to 3.4-stable (#31778).
git-svn-id: http://svn.redmine.org/redmine/branches/3.4-stable@18360 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/issue_subtasking_test.rb')
-rw-r--r--test/unit/issue_subtasking_test.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/unit/issue_subtasking_test.rb b/test/unit/issue_subtasking_test.rb
index a50df024c..ff84f8ab6 100644
--- a/test/unit/issue_subtasking_test.rb
+++ b/test/unit/issue_subtasking_test.rb
@@ -321,7 +321,7 @@ class IssueSubtaskingTest < ActiveSupport::TestCase
end
end
- def test_parent_total_estimated_hours_should_be_sum_of_descendants
+ def test_parent_total_estimated_hours_should_be_sum_of_visible_descendants
parent = Issue.generate!
parent.generate_child!(:estimated_hours => nil)
assert_equal 0, parent.reload.total_estimated_hours
@@ -329,6 +329,9 @@ class IssueSubtaskingTest < ActiveSupport::TestCase
assert_equal 5, parent.reload.total_estimated_hours
parent.generate_child!(:estimated_hours => 7)
assert_equal 12, parent.reload.total_estimated_hours
+
+ parent.generate_child!(:estimated_hours => 9, :is_private => true)
+ assert_equal 12, parent.reload.total_estimated_hours
end
def test_open_issue_with_closed_parent_should_not_validate