Commit 436de649 authored by tmaruyama's avatar tmaruyama
Browse files

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

git-svn-id: https://svn.redmine.org/redmine/trunk@7595 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 0f5de7ad
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment