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

test/functional/projects_controller_test.rb

index 515b54a88e00ecdb636e9110fb421b28a579323c..ca9f14c240f1777d6251d01b190076c3edcc2d6a 100644 (file)
@@ -273,7 +273,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
 
       should "fail with unauthorized parent_id" do