]> source.dussan.org Git - redmine.git/commitdiff
Rails4: replace deprecated Relation#update_all at WatcherTest
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 9 Jan 2014 04:23:51 +0000 (04:23 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 9 Jan 2014 04:23:51 +0000 (04:23 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@12553 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/watcher_test.rb

index fb1163aaefe6e248d204480ecf4ebe1e52efd619..aeea223de1dc41a26d97ec45010975ae446483cf 100644 (file)
@@ -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?