diff options
-rw-r--r-- | test/functional/issue_categories_controller_test.rb | 2 |
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 |