##// END OF EJS Templates
Rails4: replace deprecated Relation#update_all at ProjectNestedSetTest...
Toshi MARUYAMA -
r12277:d7f986b6a8f2
parent child
Show More
@@ -55,7 +55,7 class ProjectNestedSetTest < ActiveSupport::TestCase
55 end
55 end
56
56
57 def test_rebuild_tree_should_build_valid_tree_even_with_valid_lft_rgt_values
57 def test_rebuild_tree_should_build_valid_tree_even_with_valid_lft_rgt_values
58 Project.update_all "name = 'YY'", {:id => @a.id }
58 Project.where({:id => @a.id }).update_all("name = 'YY'")
59 # lft and rgt values are still valid (Project.rebuild! would not update anything)
59 # lft and rgt values are still valid (Project.rebuild! would not update anything)
60 # but projects are not ordered properly (YY is in the first place)
60 # but projects are not ordered properly (YY is in the first place)
61
61
General Comments 0
You need to be logged in to leave comments. Login now