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:
parent
afad5ed9f0
commit
2d8ecebf9c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue