##// END OF EJS Templates
code layout clean up of test/unit/issue_nested_set_test.rb...
Toshi MARUYAMA -
r7475:2d8ecebf9cb7
parent child
Show More
@@ -51,7 +51,8 class IssueNestedSetTest < ActiveSupport::TestCase
51
51
52 def test_creating_a_child_in_different_project_should_not_validate
52 def test_creating_a_child_in_different_project_should_not_validate
53 issue = create_issue!
53 issue = create_issue!
54 child = Issue.new(:project_id => 2, :tracker_id => 1, :author_id => 1, :subject => 'child', :parent_issue_id => issue.id)
54 child = Issue.new(:project_id => 2, :tracker_id => 1, :author_id => 1,
55 :subject => 'child', :parent_issue_id => issue.id)
55 assert !child.save
56 assert !child.save
56 assert_not_nil child.errors[:parent_issue_id]
57 assert_not_nil child.errors[:parent_issue_id]
57 end
58 end
General Comments 0
You need to be logged in to leave comments. Login now