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

test/unit/group_test.rb

index 53f1603e2cab2656671fda20d6b88130de82eadf..c2676664c8b7abacd49819bcd091bbd91bd815c7 100644 (file)
@@ -126,7 +126,7 @@ class GroupTest < ActiveSupport::TestCase
 
   def test_destroy_should_unassign_issues
     group = Group.first
-    Issue.update_all(["assigned_to_id = ?", group.id], 'id = 1')
+    Issue.where(:id => 1).update_all(["assigned_to_id = ?", group.id])
 
     assert group.destroy
     assert group.destroyed?