code layout clean up of test/unit/issue_nested_set_test.rb

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7595 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-10-07 04:17:47 +00:00
parent afad5ed9f0
commit 2d8ecebf9c
1 changed files with 2 additions and 1 deletions

View File

@ -51,7 +51,8 @@ class IssueNestedSetTest < ActiveSupport::TestCase
def test_creating_a_child_in_different_project_should_not_validate
issue = create_issue!
child = Issue.new(:project_id => 2, :tracker_id => 1, :author_id => 1, :subject => 'child', :parent_issue_id => issue.id)
child = Issue.new(:project_id => 2, :tracker_id => 1, :author_id => 1,
:subject => 'child', :parent_issue_id => issue.id)
assert !child.save
assert_not_nil child.errors[:parent_issue_id]
end