summaryrefslogtreecommitdiffstats
path: root/test/unit/issue_status_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-07-15 14:12:17 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-07-15 14:12:17 +0000
commitd7b669e50b1c863b748231dc8fb66a692a33cdd1 (patch)
tree59001bb1ae7cb03a9c8ce92e8ffb9b874c56f4af /test/unit/issue_status_test.rb
parent54d55a360a21569b4a76070b52177e778d5521c7 (diff)
downloadredmine-d7b669e50b1c863b748231dc8fb66a692a33cdd1.tar.gz
redmine-d7b669e50b1c863b748231dc8fb66a692a33cdd1.zip
Workflow enhancement: editable and required fields configurable by role, tracker and status (#703, #3521).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9977 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/issue_status_test.rb')
-rw-r--r--test/unit/issue_status_test.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/unit/issue_status_test.rb b/test/unit/issue_status_test.rb
index 6fce33675..f12fbdd3d 100644
--- a/test/unit/issue_status_test.rb
+++ b/test/unit/issue_status_test.rb
@@ -36,8 +36,8 @@ class IssueStatusTest < ActiveSupport::TestCase
assert_difference 'IssueStatus.count', -1 do
assert status.destroy
end
- assert_nil Workflow.first(:conditions => {:old_status_id => status.id})
- assert_nil Workflow.first(:conditions => {:new_status_id => status.id})
+ assert_nil WorkflowTransition.first(:conditions => {:old_status_id => status.id})
+ assert_nil WorkflowTransition.first(:conditions => {:new_status_id => status.id})
end
def test_destroy_status_in_use
@@ -70,12 +70,12 @@ class IssueStatusTest < ActiveSupport::TestCase
end
def test_new_statuses_allowed_to
- Workflow.delete_all
+ WorkflowTransition.delete_all
- Workflow.create!(:role_id => 1, :tracker_id => 1, :old_status_id => 1, :new_status_id => 2, :author => false, :assignee => false)
- Workflow.create!(:role_id => 1, :tracker_id => 1, :old_status_id => 1, :new_status_id => 3, :author => true, :assignee => false)
- Workflow.create!(:role_id => 1, :tracker_id => 1, :old_status_id => 1, :new_status_id => 4, :author => false, :assignee => true)
- Workflow.create!(:role_id => 1, :tracker_id => 1, :old_status_id => 1, :new_status_id => 5, :author => true, :assignee => true)
+ WorkflowTransition.create!(:role_id => 1, :tracker_id => 1, :old_status_id => 1, :new_status_id => 2, :author => false, :assignee => false)
+ WorkflowTransition.create!(:role_id => 1, :tracker_id => 1, :old_status_id => 1, :new_status_id => 3, :author => true, :assignee => false)
+ WorkflowTransition.create!(:role_id => 1, :tracker_id => 1, :old_status_id => 1, :new_status_id => 4, :author => false, :assignee => true)
+ WorkflowTransition.create!(:role_id => 1, :tracker_id => 1, :old_status_id => 1, :new_status_id => 5, :author => true, :assignee => true)
status = IssueStatus.find(1)
role = Role.find(1)
tracker = Tracker.find(1)