summaryrefslogtreecommitdiffstats
path: root/test/functional/issues_controller_test.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-01-10 04:11:20 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-01-10 04:11:20 +0000
commitefb5d5769af6e815c55ca3a2fd854660e57c3526 (patch)
tree53f6fc39b5a95c204acea88c25cde84c9ab8ff0e /test/functional/issues_controller_test.rb
parentc0303bf47c1fd9c0b6e2188d9ca56f604a65ebed (diff)
downloadredmine-efb5d5769af6e815c55ca3a2fd854660e57c3526.tar.gz
redmine-efb5d5769af6e815c55ca3a2fd854660e57c3526.zip
Rails4: replace deprecated Relation#last with finder options at IssuesControllerTest
git-svn-id: http://svn.redmine.org/redmine/trunk@12582 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/issues_controller_test.rb')
-rw-r--r--test/functional/issues_controller_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb
index 4945ad58f..ed7985a1e 100644
--- a/test/functional/issues_controller_test.rb
+++ b/test/functional/issues_controller_test.rb
@@ -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