From: Toshi MARUYAMA Date: Thu, 9 Jan 2014 04:24:24 +0000 (+0000) Subject: Rails4: replace deprecated Relation#update_all at QueryTest X-Git-Tag: 2.5.0~344 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ab46ef7c15487ae7ef956596e9f3790e2c5e4ffd;p=redmine.git Rails4: replace deprecated Relation#update_all at QueryTest git-svn-id: http://svn.redmine.org/redmine/trunk@12555 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/test/unit/query_test.rb b/test/unit/query_test.rb index db8a49748..91f9f3dc1 100644 --- a/test/unit/query_test.rb +++ b/test/unit/query_test.rb @@ -209,8 +209,7 @@ class QueryTest < ActiveSupport::TestCase end def test_operator_is_on_float - Issue.update_all("estimated_hours = 171.2", "id=2") - + Issue.where(:id => 2).update_all("estimated_hours = 171.2") query = IssueQuery.new(:name => '_') query.add_filter('estimated_hours', '=', ['171.20']) issues = find_issues_with_query(query)