diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-01-08 12:20:16 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-01-08 12:20:16 +0000 |
commit | fb877ddcfbb429acf9eb97f9cb8d0ab0722b6f0f (patch) | |
tree | 8f3264ab4e8e062a0eec5958c6d4f5569de099cd /test/unit/group_test.rb | |
parent | 9f079015bf355ac2a67d1a6260b3e9d25ae8ef49 (diff) | |
download | redmine-fb877ddcfbb429acf9eb97f9cb8d0ab0722b6f0f.tar.gz redmine-fb877ddcfbb429acf9eb97f9cb8d0ab0722b6f0f.zip |
Rails4: replace deprecated Relation#update_all at GroupTest
git-svn-id: http://svn.redmine.org/redmine/trunk@12530 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/group_test.rb')
-rw-r--r-- | test/unit/group_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/group_test.rb b/test/unit/group_test.rb index 53f1603e2..c2676664c 100644 --- a/test/unit/group_test.rb +++ b/test/unit/group_test.rb @@ -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? |