summaryrefslogtreecommitdiffstats
path: root/test/integration
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-01-10 08:39:32 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-01-10 08:39:32 +0000
commitd02bcbcee5d2b598f932ea7993c1eb0d65fe04be (patch)
treef84cbc8b0297ea5bc5e62ac0813384c6b4ee86cb /test/integration
parent1c938cd1d3d27f0708c6617fd3dcf5a943affa04 (diff)
downloadredmine-d02bcbcee5d2b598f932ea7993c1eb0d65fe04be.tar.gz
redmine-d02bcbcee5d2b598f932ea7993c1eb0d65fe04be.zip
Rails4: replace deprecated Relation#first with finder options at integration IssuesTest
git-svn-id: http://svn.redmine.org/redmine/trunk@12599 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration')
-rw-r--r--test/integration/issues_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/integration/issues_test.rb b/test/integration/issues_test.rb
index e0659b43c..6523a4d08 100644
--- a/test/integration/issues_test.rb
+++ b/test/integration/issues_test.rb
@@ -156,7 +156,7 @@ class IssuesTest < ActionController::IntegrationTest
:custom_field_values => {@field.id.to_s => users.first.id.to_s}
}
end
- issue = Issue.first(:order => 'id DESC')
+ issue = Issue.order('id DESC').first
assert_response 302
# Issue view