]> source.dussan.org Git - redmine.git/commitdiff
remove unneeded Relation#all from IssueTest
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 27 Jan 2014 00:08:15 +0000 (00:08 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 27 Jan 2014 00:08:15 +0000 (00:08 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@12710 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/issue_test.rb

index 8f4f32b620c36c6276feca53cfce0de60ce8264d..e808d519eb9bb3b071e1bbfb5d94db4f1490fd56 100644 (file)
@@ -581,7 +581,7 @@ class IssueTest < ActiveSupport::TestCase
     assert !admin.member_of?(issue.project)
     expected_statuses = [issue.status] +
                             WorkflowTransition.where(:old_status_id => issue.status_id).
-                                all.map(&:new_status).uniq.sort
+                                map(&:new_status).uniq.sort
     assert_equal expected_statuses, issue.new_statuses_allowed_to(admin)
   end