Commit 0f5de7ad authored by tmaruyama's avatar tmaruyama

Rails3: test: replace deprecated errors.on at...

Rails3: test: replace deprecated errors.on at test_creating_a_child_in_different_project_should_not_validate of unit/issue_nested_set_test.rb

git-svn-id: https://svn.redmine.org/redmine/trunk@7594 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 210a7677
......@@ -53,7 +53,7 @@ class IssueNestedSetTest < ActiveSupport::TestCase
issue = create_issue!
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.on(:parent_issue_id)
assert_not_nil child.errors[:parent_issue_id]
end
def test_move_a_root_to_child
......
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