]> source.dussan.org Git - redmine.git/commitdiff
Rails4: replace deprecated Relation#last with finder options at IssuesControllerTest
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 10 Jan 2014 04:11:20 +0000 (04:11 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 10 Jan 2014 04:11:20 +0000 (04:11 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@12582 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/functional/issues_controller_test.rb

index 4945ad58f992f0a06802141145088465135e8851..ed7985a1eab258905383a1deb4ce6a90f7ff2d54 100644 (file)
@@ -2283,7 +2283,7 @@ class IssuesControllerTest < ActionController::TestCase
                                 :subject => 'This is an issue',
                                 :status_id => 3}
         end
-        issue = Issue.last(:order => 'id')
+        issue = Issue.order('id').last
         assert_equal IssueStatus.default, issue.status
       end
     end