From 7ac013fbe84e890b0cd9ed9c6adb129594f74a73 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sat, 11 Jan 2014 07:47:02 +0000 Subject: [PATCH] Rails4: replace deprecated Relation#last with finder options at IssuesControllerTest git-svn-id: http://svn.redmine.org/redmine/trunk@12625 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/functional/issues_controller_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb index 33d216cb9..f70c5a3c0 100644 --- a/test/functional/issues_controller_test.rb +++ b/test/functional/issues_controller_test.rb @@ -2272,7 +2272,7 @@ class IssuesControllerTest < ActionController::TestCase :subject => 'This is an issue', :status_id => 1} end - issue = Issue.last(:order => 'id') + issue = Issue.order('id').last assert_equal IssueStatus.default, issue.status end