summaryrefslogtreecommitdiffstats
path: root/test/unit/tracker_test.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2022-09-17 07:58:12 +0000
committerGo MAEDA <maeda@farend.jp>2022-09-17 07:58:12 +0000
commitab2b130e3c3de6b861264a01ccdb6c90a3d7e5d6 (patch)
tree3cab7489c9c78d3749756eba46d8c9d7aedf7fb5 /test/unit/tracker_test.rb
parentd4b7634cc6c8f992a2d466c0302eebb7ccbd30a8 (diff)
downloadredmine-ab2b130e3c3de6b861264a01ccdb6c90a3d7e5d6.tar.gz
redmine-ab2b130e3c3de6b861264a01ccdb6c90a3d7e5d6.zip
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
Diffstat (limited to 'test/unit/tracker_test.rb')
-rw-r--r--test/unit/tracker_test.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/unit/tracker_test.rb b/test/unit/tracker_test.rb
index f81aeb63b..8eef06e58 100644
--- a/test/unit/tracker_test.rb
+++ b/test/unit/tracker_test.rb
@@ -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)