summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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