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
This commit is contained in:
parent
7d4420fe19
commit
d9dc18011d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue