Actualiza a Redmine 3.4.13
This commit is contained in:
parent
807ff3308d
commit
ecddcaf1d3
224 changed files with 2222 additions and 1000 deletions
|
@ -25,6 +25,10 @@ class IssueSubtaskingTest < ActiveSupport::TestCase
|
|||
:enabled_modules,
|
||||
:workflows
|
||||
|
||||
def setup
|
||||
User.current = nil
|
||||
end
|
||||
|
||||
def test_leaf_planning_fields_should_be_editable
|
||||
issue = Issue.generate!
|
||||
user = User.find(1)
|
||||
|
@ -321,7 +325,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 +333,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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue