From d9dc18011df366e83fdd2a18489c93a0f7b142a9 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Wed, 8 Jan 2014 04:32:31 +0000 Subject: [PATCH] Rails4: replace deprecated Relation#first with finder options at IssueCategoriesControllerTest git-svn-id: http://svn.redmine.org/redmine/trunk@12509 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/functional/issue_categories_controller_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/functional/issue_categories_controller_test.rb b/test/functional/issue_categories_controller_test.rb index 825408165..5c508351f 100644 --- a/test/functional/issue_categories_controller_test.rb +++ b/test/functional/issue_categories_controller_test.rb @@ -66,7 +66,7 @@ class IssueCategoriesControllerTest < ActionController::TestCase assert_difference 'IssueCategory.count' do xhr :post, :create, :project_id => '1', :issue_category => {:name => 'New category'} end - category = IssueCategory.first(:order => 'id DESC') + category = IssueCategory.order('id DESC').first assert_equal 'New category', category.name assert_response :success -- 2.39.5