]> source.dussan.org Git - redmine.git/commitdiff
Rails4: replace deprecated Relation#update_all at IssueTest
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 8 Jan 2014 10:11:32 +0000 (10:11 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 8 Jan 2014 10:11:32 +0000 (10:11 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@12527 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/issue_test.rb

index ab67b414632d1a9c616a80ef543aa58867c94ad6..93326460fb91fb3f819eeaa2f36e2231b09c0f99 100644 (file)
@@ -1793,7 +1793,7 @@ class IssueTest < ActiveSupport::TestCase
 
   def test_blank_descriptions_should_not_be_journalized
     IssueCustomField.delete_all
-    Issue.update_all("description = NULL", "id=1")
+    Issue.where(:id => 1).update_all("description = NULL")
 
     i = Issue.find(1)
     i.init_journal(User.find(2))