]> source.dussan.org Git - redmine.git/commitdiff
Rails3: test: replace deprecated errors.on at "fail with parent_id" of functional...
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 7 Oct 2011 14:10:37 +0000 (14:10 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 7 Oct 2011 14:10:37 +0000 (14:10 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7613 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/functional/projects_controller_test.rb

index fa35df7dedbc0ccd1ab152b1b8ffa03bd57bd72f..515b54a88e00ecdb636e9110fb421b28a579323c 100644 (file)
@@ -238,7 +238,7 @@ class ProjectsControllerTest < ActionController::TestCase
         assert_response :success
         project = assigns(:project)
         assert_kind_of Project, project
-        assert_not_nil project.errors.on(:parent_id)
+        assert_not_nil project.errors[:parent_id]
       end
     end