From 494a13d004b9acd248d3746926dfa9ae2872c23a Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Thu, 9 Jan 2014 04:24:07 +0000 Subject: [PATCH] Rails4: replace deprecated Relation#update_all at ProjectTest git-svn-id: http://svn.redmine.org/redmine/trunk@12554 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/unit/project_test.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/unit/project_test.rb b/test/unit/project_test.rb index 440ba96cc..aa926562a 100644 --- a/test/unit/project_test.rb +++ b/test/unit/project_test.rb @@ -133,8 +133,7 @@ class ProjectTest < ActiveSupport::TestCase end def test_identifier_should_not_be_frozen_for_a_saved_project_with_blank_identifier - Project.update_all(["identifier = ''"], "id = 1") - + Project.where(:id => 1).update_all(["identifier = ''"]) assert_equal false, Project.find(1).identifier_frozen? end -- 2.39.5