From: Toshi MARUYAMA Date: Thu, 9 Jan 2014 04:23:51 +0000 (+0000) Subject: Rails4: replace deprecated Relation#update_all at WatcherTest X-Git-Tag: 2.5.0~346 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d15183b2e7248f71ea29534e36ad40129150dcf8;p=redmine.git Rails4: replace deprecated Relation#update_all at WatcherTest git-svn-id: http://svn.redmine.org/redmine/trunk@12553 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/test/unit/watcher_test.rb b/test/unit/watcher_test.rb index fb1163aae..aeea223de 100644 --- a/test/unit/watcher_test.rb +++ b/test/unit/watcher_test.rb @@ -61,7 +61,7 @@ class WatcherTest < ActiveSupport::TestCase end def test_watcher_users_should_not_validate_user - User.update_all("firstname = ''", "id=1") + User.where(:id => 1).update_all("firstname = ''") @user.reload assert !@user.valid?