summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-01-08 04:32:31 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-01-08 04:32:31 +0000
commitd9dc18011df366e83fdd2a18489c93a0f7b142a9 (patch)
tree4cd45bb73f657e293b68ad2100c97b600064a01e /test
parent7d4420fe19b2e06b85fd78328d0e522eca4f3f1a (diff)
downloadredmine-d9dc18011df366e83fdd2a18489c93a0f7b142a9.tar.gz
redmine-d9dc18011df366e83fdd2a18489c93a0f7b142a9.zip
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
Diffstat (limited to 'test')
-rw-r--r--test/functional/issue_categories_controller_test.rb2
1 files changed, 1 insertions, 1 deletions
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