diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-01-09 04:23:51 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-01-09 04:23:51 +0000 |
commit | d15183b2e7248f71ea29534e36ad40129150dcf8 (patch) | |
tree | 896838ca9bfe6f561ed837615cc15564945e9f1c /test/unit/watcher_test.rb | |
parent | d7f986b6a8f2f82836ee6285aa8d1230274c9d80 (diff) | |
download | redmine-d15183b2e7248f71ea29534e36ad40129150dcf8.tar.gz redmine-d15183b2e7248f71ea29534e36ad40129150dcf8.zip |
Rails4: replace deprecated Relation#update_all at WatcherTest
git-svn-id: http://svn.redmine.org/redmine/trunk@12553 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/watcher_test.rb')
-rw-r--r-- | test/unit/watcher_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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? |