]> source.dussan.org Git - redmine.git/commitdiff
code layout clean up test_new_statuses_allowed_to_should_return_all_transitions_for_a...
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 13 Oct 2012 10:53:44 +0000 (10:53 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 13 Oct 2012 10:53:44 +0000 (10:53 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10644 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/issue_test.rb

index 03cb029f1b7f0d9ff57a8da691753d8549405dcc..47b3748260069959addbca16f1f65760e7efa13d 100644 (file)
@@ -450,8 +450,9 @@ class IssueTest < ActiveSupport::TestCase
     admin = User.find(1)
     issue = Issue.find(1)
     assert !admin.member_of?(issue.project)
-    expected_statuses = [issue.status] + WorkflowTransition.find_all_by_old_status_id(issue.status_id).map(&:new_status).uniq.sort
-
+    expected_statuses = [issue.status] + 
+                            WorkflowTransition.find_all_by_old_status_id(
+                                issue.status_id).map(&:new_status).uniq.sort
     assert_equal expected_statuses, issue.new_statuses_allowed_to(admin)
   end