summaryrefslogtreecommitdiffstats
path: root/test/integration
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-01-10 08:38:09 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-01-10 08:38:09 +0000
commit3480d46ff36946d4263c4244368f21a4229810a9 (patch)
tree8f17046239e69607b02971bfac2ac8b297530dfd /test/integration
parentc020578820ec1a569513ed8a8bea2d74e5541f9e (diff)
downloadredmine-3480d46ff36946d4263c4244368f21a4229810a9.tar.gz
redmine-3480d46ff36946d4263c4244368f21a4229810a9.zip
Rails4: replace deprecated Relation#first with finder options at ApiTest::IssueCategoriesTest
git-svn-id: http://svn.redmine.org/redmine/trunk@12596 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration')
-rw-r--r--test/integration/api_test/issue_categories_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/integration/api_test/issue_categories_test.rb b/test/integration/api_test/issue_categories_test.rb
index a8a2abda3..053a8f67b 100644
--- a/test/integration/api_test/issue_categories_test.rb
+++ b/test/integration/api_test/issue_categories_test.rb
@@ -51,7 +51,7 @@ class Redmine::ApiTest::IssueCategoriesTest < Redmine::ApiTest::Base
assert_response :created
assert_equal 'application/xml', @response.content_type
- category = IssueCategory.first(:order => 'id DESC')
+ category = IssueCategory.order('id DESC').first
assert_equal 'API', category.name
assert_equal 1, category.project_id
end