diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-10-07 14:11:06 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-10-07 14:11:06 +0000 |
commit | dba63410313626cc431753d2c8439322c0c517ca (patch) | |
tree | 4a2e0641ecbbbdeaffe34ec9a9a7395e60649278 /test/functional/projects_controller_test.rb | |
parent | d66aceb751c48bd853c2a5edaff81509f3276f17 (diff) | |
download | redmine-dba63410313626cc431753d2c8439322c0c517ca.tar.gz redmine-dba63410313626cc431753d2c8439322c0c517ca.zip |
Rails3: test: replace deprecated errors.on at "fail without parent_id" of functional/projects_controller_test.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7614 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/projects_controller_test.rb')
-rw-r--r-- | test/functional/projects_controller_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/projects_controller_test.rb b/test/functional/projects_controller_test.rb index 515b54a88..ca9f14c24 100644 --- a/test/functional/projects_controller_test.rb +++ b/test/functional/projects_controller_test.rb @@ -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 |