##// END OF EJS Templates
Rails4: replace deprecated Relation#first with finder options at ChangesetTest...
Toshi MARUYAMA -
r12239:035c68f1a9d9
parent child
Show More
@@ -96,7 +96,7 class ChangesetTest < ActiveSupport::TestCase
96 96 end
97 97 assert_equal [1], c.issue_ids.sort
98 98
99 time = TimeEntry.first(:order => 'id desc')
99 time = TimeEntry.order('id desc').first
100 100 assert_equal 1, time.issue_id
101 101 assert_equal 1, time.project_id
102 102 assert_equal 2, time.user_id
General Comments 0
You need to be logged in to leave comments. Login now