Commit a1042a95 authored by marutosijp's avatar marutosijp

Rails4: replace deprecated Relation#update_all at GroupTest

git-svn-id: https://svn.redmine.org/redmine/trunk@12530 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 68d54d19
......@@ -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?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment