Rails4: replace deprecated Relation#update_all at QueryTest

git-svn-id: http://svn.redmine.org/redmine/trunk@12555 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2014-01-09 04:24:24 +00:00
parent 494a13d004
commit ab46ef7c15
1 changed files with 1 additions and 2 deletions

View File

@ -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)