From ab46ef7c15487ae7ef956596e9f3790e2c5e4ffd Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Thu, 9 Jan 2014 04:24:24 +0000 Subject: [PATCH] Rails4: replace deprecated Relation#update_all at QueryTest git-svn-id: http://svn.redmine.org/redmine/trunk@12555 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/unit/query_test.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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)