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
This commit is contained in:
Toshi MARUYAMA 2014-01-10 08:38:09 +00:00
parent c020578820
commit 3480d46ff3

View File

@ -51,7 +51,7 @@ class Redmine::ApiTest::IssueCategoriesTest < Redmine::ApiTest::Base
assert_response :created assert_response :created
assert_equal 'application/xml', @response.content_type 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 'API', category.name
assert_equal 1, category.project_id assert_equal 1, category.project_id
end end