Rails4: replace deprecated Relation#update_all at WatcherTest

git-svn-id: http://svn.redmine.org/redmine/trunk@12553 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2014-01-09 04:23:51 +00:00
parent d7f986b6a8
commit d15183b2e7
1 changed files with 1 additions and 1 deletions

View 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?