]> source.dussan.org Git - redmine.git/commitdiff
Rails3: test: replace deprecated errors.on at test_moving_an_issue_to_a_descendant_sh...
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 7 Oct 2011 23:54:27 +0000 (23:54 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 7 Oct 2011 23:54:27 +0000 (23:54 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7617 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/issue_nested_set_test.rb

index d3610b087608f12892ab76acba9a21d53be98ca2..d7be363444ef57fcddd3e0556b2a7c4611c9a551 100644 (file)
@@ -179,7 +179,7 @@ class IssueNestedSetTest < ActiveSupport::TestCase
     child.reload
     child.parent_issue_id = grandchild.id
     assert !child.save
-    assert_not_nil child.errors.on(:parent_issue_id)
+    assert_not_nil child.errors[:parent_issue_id]
   end
 
   def test_moving_an_issue_should_keep_valid_relations_only