Rails4: replace deprecated Relation#update_all at ProjectNestedSetTest
git-svn-id: http://svn.redmine.org/redmine/trunk@12552 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
394628f205
commit
d7f986b6a8
|
@ -55,7 +55,7 @@ class ProjectNestedSetTest < ActiveSupport::TestCase
|
|||
end
|
||||
|
||||
def test_rebuild_tree_should_build_valid_tree_even_with_valid_lft_rgt_values
|
||||
Project.update_all "name = 'YY'", {:id => @a.id }
|
||||
Project.where({:id => @a.id }).update_all("name = 'YY'")
|
||||
# lft and rgt values are still valid (Project.rebuild! would not update anything)
|
||||
# but projects are not ordered properly (YY is in the first place)
|
||||
|
||||
|
|
Loading…
Reference in New Issue