@@ -26,13 +26,13 class IssueCategoryTest < ActiveSupport::TestCase | |||
|
26 | 26 | |
|
27 | 27 | def test_create |
|
28 | 28 | assert IssueCategory.new(:project_id => 2, :name => 'New category').save |
|
29 |
category = IssueCategory. |
|
|
29 | category = IssueCategory.order('id DESC').first | |
|
30 | 30 | assert_equal 'New category', category.name |
|
31 | 31 | end |
|
32 | 32 | |
|
33 | 33 | def test_create_with_group_assignment |
|
34 | 34 | assert IssueCategory.new(:project_id => 2, :name => 'Group assignment', :assigned_to_id => 11).save |
|
35 |
category = IssueCategory. |
|
|
35 | category = IssueCategory.order('id DESC').first | |
|
36 | 36 | assert_kind_of Group, category.assigned_to |
|
37 | 37 | assert_equal Group.find(11), category.assigned_to |
|
38 | 38 | end |
General Comments 0
You need to be logged in to leave comments.
Login now