summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-10-08 14:10:02 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-10-08 14:10:02 +0000
commit74f5842adb861feacf93f9846403aa0a76f57086 (patch)
tree3408a42020135106e739d87cfe244e65d81fa87e /test
parent73b81ddef0c95442784defad989c8d71e773910f (diff)
downloadredmine-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.rb17
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)