From d66aceb751c48bd853c2a5edaff81509f3276f17 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Fri, 7 Oct 2011 14:10:37 +0000 Subject: Rails3: test: replace deprecated errors.on at "fail with parent_id" of functional/projects_controller_test.rb git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7613 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/functional/projects_controller_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/functional/projects_controller_test.rb') diff --git a/test/functional/projects_controller_test.rb b/test/functional/projects_controller_test.rb index fa35df7de..515b54a88 100644 --- a/test/functional/projects_controller_test.rb +++ b/test/functional/projects_controller_test.rb @@ -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 -- cgit v1.2.3