diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-10-08 14:10:02 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-10-08 14:10:02 +0000 |
commit | 74f5842adb861feacf93f9846403aa0a76f57086 (patch) | |
tree | 3408a42020135106e739d87cfe244e65d81fa87e /test | |
parent | 73b81ddef0c95442784defad989c8d71e773910f (diff) | |
download | redmine-74f5842adb861feacf93f9846403aa0a76f57086.tar.gz redmine-74f5842adb861feacf93f9846403aa0a76f57086.zip |
code layout clean up test/unit/issue_status_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18628 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/issue_status_test.rb | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/test/unit/issue_status_test.rb b/test/unit/issue_status_test.rb index 6b81ec1f9..a18941544 100644 --- a/test/unit/issue_status_test.rb +++ b/test/unit/issue_status_test.rb @@ -61,11 +61,18 @@ class IssueStatusTest < ActiveSupport::TestCase def test_new_statuses_allowed_to WorkflowTransition.delete_all - - 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) + 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) |