From d15183b2e7248f71ea29534e36ad40129150dcf8 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Thu, 9 Jan 2014 04:23:51 +0000 Subject: [PATCH] Rails4: replace deprecated Relation#update_all at WatcherTest git-svn-id: http://svn.redmine.org/redmine/trunk@12553 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/unit/watcher_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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? -- 2.39.5