]> source.dussan.org Git - redmine.git/commitdiff
remove unneeded Relation#all from ChangesetTest#test_ref_keywords_closing_with_timelog
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 9 Jan 2014 00:04:56 +0000 (00:04 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 9 Jan 2014 00:04:56 +0000 (00:04 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@12539 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/changeset_test.rb

index 0b134ad9b0a9d3c1074ec5b74ded40f4d68be6a4..a81cea35cd76d335a6bfcfa108dca452a425c6ef 100644 (file)
@@ -126,7 +126,7 @@ class ChangesetTest < ActiveSupport::TestCase
     assert Issue.find(1).closed?
     assert Issue.find(2).closed?
 
-    times = TimeEntry.all(:order => 'id desc', :limit => 2)
+    times = TimeEntry.order('id desc').limit(2)
     assert_equal [1, 2], times.collect(&:issue_id).sort
   end