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

test/unit/issue_status_test.rb

index 4ab94c14a1dc948f29236bdbf09250a4ad97e4c4..1f86dcdb75b05ca7f00d022faaa02815a44ccd0b 100644 (file)
@@ -104,10 +104,9 @@ class IssueStatusTest < ActiveSupport::TestCase
 
   def test_update_done_ratios_with_issue_done_ratio_set_to_issue_status_should_update_issues
     IssueStatus.find(1).update_attribute(:default_done_ratio, 50)
-
     with_settings :issue_done_ratio => 'issue_status' do
       IssueStatus.update_issue_done_ratios
-      issues = Issue.where(:status_id => 1).all
+      issues = Issue.where(:status_id => 1)
       assert_equal [50], issues.map {|issue| issue.read_attribute(:done_ratio)}.uniq
     end
   end