@@ -55,7 +55,7 class ProjectNestedSetTest < ActiveSupport::TestCase | |||
|
55 | 55 | end |
|
56 | 56 | |
|
57 | 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 | 59 | # lft and rgt values are still valid (Project.rebuild! would not update anything) |
|
60 | 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