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