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
This commit is contained in:
parent
ac214f5480
commit
d9624990e0
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue