Ignore statuses if workflow only defines identity transition (#37636).

Patch by Holger Just.


git-svn-id: https://svn.redmine.org/redmine/trunk@21818 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2022-09-17 07:58:12 +00:00
parent d4b7634cc6
commit ab2b130e3c
4 changed files with 20 additions and 0 deletions

View File

@@ -89,6 +89,7 @@ class TrackerTest < ActiveSupport::TestCase
def test_issue_statuses
tracker = Tracker.find(1)
WorkflowTransition.delete_all
WorkflowTransition.create!(:role_id => 1, :tracker_id => 1, :old_status_id => 1, :new_status_id => 1)
WorkflowTransition.create!(:role_id => 1, :tracker_id => 1, :old_status_id => 2, :new_status_id => 3)
WorkflowTransition.create!(:role_id => 2, :tracker_id => 1, :old_status_id => 3, :new_status_id => 5)