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:
parent
d7f986b6a8
commit
d15183b2e7
|
@ -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?
|
||||
|
||||
|
|
Loading…
Reference in New Issue