Rails4: replace deprecated Relation#update_all at IssueTest

git-svn-id: http://svn.redmine.org/redmine/trunk@12527 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2014-01-08 10:11:32 +00:00
parent 78ca50560a
commit e80d9bb69a
1 changed files with 1 additions and 1 deletions

View File

@ -1793,7 +1793,7 @@ class IssueTest < ActiveSupport::TestCase
def test_blank_descriptions_should_not_be_journalized
IssueCustomField.delete_all
Issue.update_all("description = NULL", "id=1")
Issue.where(:id => 1).update_all("description = NULL")
i = Issue.find(1)
i.init_journal(User.find(2))