From: Toshi MARUYAMA Date: Thu, 9 Jan 2014 00:04:56 +0000 (+0000) Subject: remove unneeded Relation#all from ChangesetTest#test_ref_keywords_closing_with_timelog X-Git-Tag: 2.5.0~360 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d9624990e0e2af5b52ed0a348460e6f13e1e7867;p=redmine.git remove unneeded Relation#all from ChangesetTest#test_ref_keywords_closing_with_timelog git-svn-id: http://svn.redmine.org/redmine/trunk@12539 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/test/unit/changeset_test.rb b/test/unit/changeset_test.rb index 0b134ad9b..a81cea35c 100644 --- a/test/unit/changeset_test.rb +++ b/test/unit/changeset_test.rb @@ -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