@@ -66,7 +66,7 class IssueCategoriesControllerTest < ActionController::TestCase | |||
|
66 | 66 | assert_difference 'IssueCategory.count' do |
|
67 | 67 | xhr :post, :create, :project_id => '1', :issue_category => {:name => 'New category'} |
|
68 | 68 | end |
|
69 |
category = IssueCategory. |
|
|
69 | category = IssueCategory.order('id DESC').first | |
|
70 | 70 | assert_equal 'New category', category.name |
|
71 | 71 | |
|
72 | 72 | assert_response :success |
General Comments 0
You need to be logged in to leave comments.
Login now