diff options
author | Go MAEDA <maeda@farend.jp> | 2024-05-16 07:20:19 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2024-05-16 07:20:19 +0000 |
commit | 9189837e7bd1066f267ebad54620bb21ef17af63 (patch) | |
tree | 13a2418609c576497bf43fb6dc7774c7073cfe1b /test/unit | |
parent | 250414c3539ecd31bbad0b6ae4f4cf94b2b1864e (diff) | |
download | redmine-9189837e7bd1066f267ebad54620bb21ef17af63.tar.gz redmine-9189837e7bd1066f267ebad54620bb21ef17af63.zip |
Ignore statuses in Project#rolled_up_statuses which only have an identity transition defined (#40693).
Patch by Holger Just (@hjust).
git-svn-id: https://svn.redmine.org/redmine/trunk@22833 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/project_test.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/unit/project_test.rb b/test/unit/project_test.rb index a7047d71c..dc7d00fe8 100644 --- a/test/unit/project_test.rb +++ b/test/unit/project_test.rb @@ -534,6 +534,8 @@ class ProjectTest < ActiveSupport::TestCase WorkflowTransition.create(:role_id => 1, :tracker_id => 1, :old_status_id => 1, :new_status_id => 4) WorkflowTransition.create(:role_id => 1, :tracker_id => 1, :old_status_id => 2, :new_status_id => 3) WorkflowTransition.create(:role_id => 1, :tracker_id => 2, :old_status_id => 1, :new_status_id => 3) + WorkflowTransition.create(:role_id => 1, :tracker_id => 1, :old_status_id => 5, :new_status_id => 5) + WorkflowTransition.create(:role_id => 1, :tracker_id => 2, :old_status_id => 5, :new_status_id => 5) assert_kind_of IssueStatus, project.rolled_up_statuses.first assert_equal IssueStatus.find(1), project.rolled_up_statuses.first |