@@ -53,7 +53,7 class IssueNestedSetTest < ActiveSupport::TestCase | |||
|
53 | 53 | issue = create_issue! |
|
54 | 54 | child = Issue.new(:project_id => 2, :tracker_id => 1, :author_id => 1, :subject => 'child', :parent_issue_id => issue.id) |
|
55 | 55 | assert !child.save |
|
56 |
assert_not_nil child.errors |
|
|
56 | assert_not_nil child.errors[:parent_issue_id] | |
|
57 | 57 | end |
|
58 | 58 | |
|
59 | 59 | def test_move_a_root_to_child |
General Comments 0
You need to be logged in to leave comments.
Login now