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
This commit is contained in:
parent
8dc797e19d
commit
d66aceb751
|
@ -238,7 +238,7 @@ class ProjectsControllerTest < ActionController::TestCase
|
||||||
assert_response :success
|
assert_response :success
|
||||||
project = assigns(:project)
|
project = assigns(:project)
|
||||||
assert_kind_of Project, project
|
assert_kind_of Project, project
|
||||||
assert_not_nil project.errors.on(:parent_id)
|
assert_not_nil project.errors[:parent_id]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue