summaryrefslogtreecommitdiffstats
path: root/test/unit/project_nested_set_test.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-01-09 04:23:36 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-01-09 04:23:36 +0000
commitd7f986b6a8f2f82836ee6285aa8d1230274c9d80 (patch)
treeda3b82fa44af355427024dcdaf30e86b2201702e /test/unit/project_nested_set_test.rb
parent394628f2054d41c99ee24d8d8a622a5cb9c7e0bf (diff)
downloadredmine-d7f986b6a8f2f82836ee6285aa8d1230274c9d80.tar.gz
redmine-d7f986b6a8f2f82836ee6285aa8d1230274c9d80.zip
Rails4: replace deprecated Relation#update_all at ProjectNestedSetTest
git-svn-id: http://svn.redmine.org/redmine/trunk@12552 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/project_nested_set_test.rb')
-rw-r--r--test/unit/project_nested_set_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/project_nested_set_test.rb b/test/unit/project_nested_set_test.rb
index a65a4b8df..6048cd23d 100644
--- a/test/unit/project_nested_set_test.rb
+++ b/test/unit/project_nested_set_test.rb
@@ -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)