diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-01-11 07:47:02 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-01-11 07:47:02 +0000 |
commit | 7ac013fbe84e890b0cd9ed9c6adb129594f74a73 (patch) | |
tree | d381fbf0bb7c793cce8c99c2d043ce787d73db02 /test/functional | |
parent | 15031f6173959e3fc0defceb7d4703c5b6077cfd (diff) | |
download | redmine-7ac013fbe84e890b0cd9ed9c6adb129594f74a73.tar.gz redmine-7ac013fbe84e890b0cd9ed9c6adb129594f74a73.zip |
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
Diffstat (limited to 'test/functional')
-rw-r--r-- | test/functional/issues_controller_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |