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: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7594 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-10-07 04:17:14 +00:00
parent c76b114e9e
commit afad5ed9f0
1 changed files with 1 additions and 1 deletions

View File

@ -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