diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-10-07 04:17:14 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-10-07 04:17:14 +0000 |
commit | afad5ed9f0df6ef969440e2865e96b4cd556d31f (patch) | |
tree | 9310fb69cdfb93630d9334422b8670daf65e6618 /test/unit/issue_nested_set_test.rb | |
parent | c76b114e9e057245fef0538121bd2ba00ce74171 (diff) | |
download | redmine-afad5ed9f0df6ef969440e2865e96b4cd556d31f.tar.gz redmine-afad5ed9f0df6ef969440e2865e96b4cd556d31f.zip |
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
Diffstat (limited to 'test/unit/issue_nested_set_test.rb')
-rw-r--r-- | test/unit/issue_nested_set_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/issue_nested_set_test.rb b/test/unit/issue_nested_set_test.rb index d3ff52f43..e52bc6600 100644 --- a/test/unit/issue_nested_set_test.rb +++ b/test/unit/issue_nested_set_test.rb @@ -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 |